Catalano.Imaging.Filters
Class RosinThreshold
- java.lang.Object
-
- Catalano.Imaging.Filters.RosinThreshold
-
- All Implemented Interfaces:
- IApplyInPlace
public class RosinThreshold extends java.lang.Object implements IApplyInPlace
Rosin Threshold.Unimodal thresholding is an algorithm for automatic image threshold selection in image processing. Most threshold selection algorithms assume that the intensity histogram is multi-modal; typically bimodal. However, some types of images are essentially unimodal since a much larger proportion of just one class of pixels (e.g. the background) is present in the image, and dominates the histogram. Rosin Threshod uses Maximum deviation algorithm: a straight line is drawn from the histogram peak to the end of the tail, and the threshold is selected at the point of the histogram furthest from the straight line
-
-
Constructor Summary
Constructors Constructor and Description RosinThreshold()Initialize a new instance of the RosinThreshold 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
-
RosinThreshold
public RosinThreshold()
Initialize a new instance of the RosinThreshold 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