Package boofcv.alg.filter.binary
Class ThresholdLocalOtsu
java.lang.Object
boofcv.alg.filter.binary.ThresholdLocalOtsu
- All Implemented Interfaces:
InputToBinary<GrayU8>
- Direct Known Subclasses:
ThresholdLocalOtsu_MT
Local Otsu thresholding where each pixel is thresholded by computing the
GThresholdImageOps.computeOtsu2(int[], int, int)
Otsu-2} using its local region
This implementation includes a modification from the traditional Otsu algorithm. The threshold can optionally
be adjusted in low variance regions. See code for details.-
Constructor Summary
ConstructorDescriptionThresholdLocalOtsu
(boolean otsu2, ConfigLength regionWidthLength, double tuning, double scale, boolean down) Configures the detector -
Method Summary
-
Constructor Details
-
ThresholdLocalOtsu
public ThresholdLocalOtsu(boolean otsu2, ConfigLength regionWidthLength, double tuning, double scale, boolean down) Configures the detector- Parameters:
regionWidthLength
- How wide the local square region is.tuning
- Tuning parameter. 0 = standard Otsu. Greater than 0 will penalize zero texture.
-
-
Method Details
-
process
Converts the gray scale input image into a binary image- Specified by:
process
in interfaceInputToBinary<GrayU8>
- Parameters:
input
- Input imageoutput
- Output binary image
-
process
-
getInputType
- Specified by:
getInputType
in interfaceInputToBinary<GrayU8>
-