public class OtsuThreshold extends java.lang.Object implements IApplyInPlace
MaximumEntropyThreshold,
RosinThreshold| Constructor and Description |
|---|
OtsuThreshold()
Initializes a new instance of the OtsuThreshold class.
|
OtsuThreshold(boolean invert)
Initializes a new instance of the OtsuThreshold class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
applyInPlace(FastBitmap fastBitmap)
Apply filter to an image.
|
int |
CalculateThreshold(FastBitmap fastBitmap)
Calculate binarization threshold for the given image.
|
public OtsuThreshold()
public OtsuThreshold(boolean invert)
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 void applyInPlace(FastBitmap fastBitmap)
IApplyInPlaceapplyInPlace in interface IApplyInPlacefastBitmap - Image to be processed.public int CalculateThreshold(FastBitmap fastBitmap)
fastBitmap - FastBitmap.