Catalano.Imaging.Concurrent.Filters
Class Threshold
- java.lang.Object
-
- Catalano.Imaging.Concurrent.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.
-
-
Constructor Summary
Constructors Constructor and Description Threshold()Initialize a new instance of the Threshold class.Threshold(int threshold)Initialize a new instance of the Threshold class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidapplyInPlace(FastBitmap fb)Apply filter to an image.intgetValue()Get Threshold value.voidsetValue(int threshold)Set Threshold value.
-
-
-
Constructor Detail
-
Threshold
public Threshold()
Initialize a new instance of the Threshold class.
-
Threshold
public Threshold(int threshold)
Initialize a new instance of the Threshold class.- Parameters:
threshold- Value.
-
-
Method Detail
-
getValue
public int getValue()
Get Threshold value.- Returns:
- Value.
-
setValue
public void setValue(int threshold)
Set Threshold value.- Parameters:
threshold- Value.
-
applyInPlace
public void applyInPlace(FastBitmap fb)
Description copied from interface:IApplyInPlaceApply filter to an image.- Specified by:
applyInPlacein interfaceIApplyInPlace- Parameters:
fb- Image to be processed.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG