Class ThresholdBlockOtsu

java.lang.Object
boofcv.alg.filter.binary.ThresholdBlockOtsu
All Implemented Interfaces:
ThresholdBlock.BlockProcessor<GrayU8,​InterleavedS32>

public class ThresholdBlockOtsu
extends Object
implements ThresholdBlock.BlockProcessor<GrayU8,​InterleavedS32>
Block Otsu threshold implementation based on ThresholdBlock. Computes a histogram in non-overlapping square regions. Then thresholds a single region by combining histograms from its neighbors to make it less blocky. This implementation includes a modification from the traditional Otsu algorithm. The threshold can optionally be adjusted in low variance regions. See code for details.

NOTE: This produces visually different results from ThresholdBlockOtsu because the block algorithm combines histograms from its neighboring blocks. That's why it appears to have a wider effective block.

See Also:
GThresholdImageOps.computeOtsu(ImageGray, double, double)