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

Class Threshold

  • All Implemented Interfaces:
    IApplyInPlace


    public class Threshold
    extends java.lang.Object
    implements IApplyInPlace
    Threshold. The filter does image binarization using specified threshold value. All pixels with intensities equal or higher than threshold value are converted to white pixels. All other pixels with intensities below threshold value are converted to black pixels. Supported types: Grayscale. Coordinate System: Independent.
    • Constructor Summary

      Constructors 
      Constructor and Description
      Threshold()
      Initialize a new instance of the Threshold class.
      Threshold(int value)
      Initialize a new instance of the Threshold class.
      Threshold(int value, boolean invert)
      Initialize a new instance of the Threshold 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 getValue()
      Threshold value.
      void setValue(int value)
      Threshold value.
      • Methods inherited from class java.lang.Object

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

      • Threshold

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

        public Threshold(int value)
        Initialize a new instance of the Threshold class.
        Parameters:
        value - Threshold value.
      • Threshold

        public Threshold(int value,
                         boolean invert)
        Initialize a new instance of the Threshold class.
        Parameters:
        value - Threshold value.
        invert - All pixels with intensities equal or higher than threshold value are converted to black pixels. All other pixels with intensities below threshold value are converted to white pixels.
    • Method Detail

      • getValue

        public int getValue()
        Threshold value.
        Returns:
        Threshold value.
      • setValue

        public void setValue(int value)
        Threshold value.
        Parameters:
        value - Threshold value.
      • 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.