Catalano.Imaging.Concurrent.Filters
Class OtsuThreshold
- java.lang.Object
-
- Catalano.Imaging.Concurrent.Filters.OtsuThreshold
-
- All Implemented Interfaces:
- IApplyInPlace
public class OtsuThreshold extends java.lang.Object implements IApplyInPlace
Otsu Threshold.
The class implements Otsu thresholding, which is described in NOtsu, "A threshold selection method from gray-level histograms", IEEE Trans. Systems, Man and Cybernetics 9(1), pp. 62–66, 1979 .
This implementation instead of minimizing the weighted within-class variance does maximization of between-class variance, what gives the same result.- See Also:
MaximumEntropyThreshold
-
-
Constructor Summary
Constructors Constructor and Description OtsuThreshold()Initializes a new instance of the OtsuThreshold class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidapplyInPlace(FastBitmap fastBitmap)Apply filter to an image.intCalculateThreshold(FastBitmap fastBitmap)Calculate binarization threshold for the given image.
-
-
-
Constructor Detail
-
OtsuThreshold
public OtsuThreshold()
Initializes a new instance of the OtsuThreshold class.
-
-
Method Detail
-
applyInPlace
public void applyInPlace(FastBitmap fastBitmap)
Description copied from interface:IApplyInPlaceApply filter to an image.- Specified by:
applyInPlacein interfaceIApplyInPlace- Parameters:
fastBitmap- Image to be processed.
-
CalculateThreshold
public int CalculateThreshold(FastBitmap fastBitmap)
Calculate binarization threshold for the given image.- Parameters:
fastBitmap- FastBitmap.- Returns:
- Threshold value.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG