public class TsaiThreshold extends java.lang.Object implements IApplyInPlace
| Constructor and Description |
|---|
TsaiThreshold()
Initializes a new instance of the TsaiThreshold class.
|
TsaiThreshold(boolean invert)
Initializes a new instance of the TsaiThreshold class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
applyInPlace(FastBitmap fastBitmap)
Apply filter to an image.
|
int |
CalculateThreshold(FastBitmap fastBitmap)
Calculate the bilevel threshold value.
|
boolean |
isInvert()
Check if the threshold is inverted.
|
void |
setInvert(boolean invert)
Invert threshold.
|
public TsaiThreshold()
public TsaiThreshold(boolean invert)
invert - True if need to invert the threshold.public boolean isInvert()
public void setInvert(boolean invert)
invert - True if need to invert the threshold.public void applyInPlace(FastBitmap fastBitmap)
IApplyInPlaceapplyInPlace in interface IApplyInPlacefastBitmap - Image to be processed.public int CalculateThreshold(FastBitmap fastBitmap)
fastBitmap - Grayscale image.