public class MaximumEntropyThreshold extends java.lang.Object implements IApplyInPlace
OtsuThreshold| Constructor and Description |
|---|
MaximumEntropyThreshold()
Initialize a new instance of the MaximumEntropyThreshold class.
|
MaximumEntropyThreshold(boolean invert)
Initialize a new instance of the MaximumEntropyThreshold 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 MaximumEntropyThreshold()
public MaximumEntropyThreshold(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.