public abstract class ThresholdBlockMean<T extends ImageGray<T>> extends ThresholdBlockCommon<T,T>
Applies a threshold to an image by computing the mean values in a regular grid across the image. When thresholding all the pixels inside a box (grid element) the mean values is found in the surrounding 3x3 grid region.\
See ThresholdBlockMinMax for a more detailed discussion of elements of this strategy
blockHeight, blockWidth, requestedBlockWidth, stats, thresholdFromLocalBlocks| Constructor and Description |
|---|
ThresholdBlockMean(ConfigLength requestedBlockWidth,
boolean thresholdFromLocalBlocks,
java.lang.Class<T> imageType)
Configures the detector
|
computeBlockStatistics, computeStatistics, getInputType, isThresholdFromLocalBlocks, process, setThresholdFromLocalBlocks, thresholdBlockpublic ThresholdBlockMean(ConfigLength requestedBlockWidth, boolean thresholdFromLocalBlocks, java.lang.Class<T> imageType)
requestedBlockWidth - About how wide and tall you wish a block to be in pixels.