Catalano.Imaging.Filters
Class Threshold
- java.lang.Object
-
- Catalano.Imaging.Filters.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 voidapplyInPlace(FastBitmap fastBitmap)Apply filter to an image.intgetValue()Threshold value.voidsetValue(int value)Threshold value.
-
-
-
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:IApplyInPlaceApply filter to an image.- Specified by:
applyInPlacein interfaceIApplyInPlace- Parameters:
fastBitmap- Image to be processed.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG