public class Threshold extends java.lang.Object implements IApplyInPlace
| 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.
|
| 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.
|
public Threshold()
public Threshold(int value)
value - Threshold value.public Threshold(int value,
boolean invert)
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.public int getValue()
public void setValue(int value)
value - Threshold value.public void applyInPlace(FastBitmap fastBitmap)
IApplyInPlaceapplyInPlace in interface IApplyInPlacefastBitmap - Image to be processed.