Documentation of 'Catalano.Imaging.Filters.HistogramStretch' Java class
HistogramStretch
Catalano.Imaging.Filters

Class HistogramStretch

  • All Implemented Interfaces:
    IApplyInPlace


    public class HistogramStretch
    extends java.lang.Object
    implements IApplyInPlace
    Stretch histogram across the entire gray level range, which has the effect of increasing the contrast of a low contrast image.
    If a stretch is desired over a smaller range, different MAX and MIN values can be specified.
    See Also:
    Imaging - Scott E. Umbaugh - Chapter 8 - p. 353
    • Constructor Summary

      Constructors 
      Constructor and Description
      HistogramStretch()
      Initialize a new instance of the HistogramStretch class.
      HistogramStretch(int min, int max)
      Initialize a new instance of the HistogramStretch class.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void applyInPlace(FastBitmap fastBitmap)
      Apply filter to an image.
      int getMax()
      Maximum gray level.
      int getMin()
      Minimum gray level.
      void setMax(int max)
      Maximum gray level.
      void setMin(int min)
      Minimum gray level.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HistogramStretch

        public HistogramStretch()
        Initialize a new instance of the HistogramStretch class.
      • HistogramStretch

        public HistogramStretch(int min,
                                int max)
        Initialize a new instance of the HistogramStretch class.
        Parameters:
        min - Correspond to the minimum gray level values possible. Range [0..255].
        max - Correspond to the maximum gray level values possible. Range [0..255].
    • Method Detail

      • getMax

        public int getMax()
        Maximum gray level.
        Returns:
        Maximum.
      • setMax

        public void setMax(int max)
        Maximum gray level.
        Parameters:
        max - Maximum.
      • getMin

        public int getMin()
        Minimum gray level.
        Returns:
        Minimum.
      • setMin

        public void setMin(int min)
        Minimum gray level.
        Parameters:
        min - Minimum.
      • applyInPlace

        public void applyInPlace(FastBitmap fastBitmap)
        Description copied from interface: IApplyInPlace
        Apply filter to an image.
        Specified by:
        applyInPlace in interface IApplyInPlace
        Parameters:
        fastBitmap - Image to be processed.

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.