Class ThresholdBlockMean<T extends ImageGray<T>>

All Implemented Interfaces:
Direct Known Subclasses:
ThresholdBlockMean_F32, ThresholdBlockMean_U8

public abstract class ThresholdBlockMean<T extends ImageGray<T>>
extends Object
implements ThresholdBlock.BlockProcessor<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

  • Field Details

    • blockWidth

      protected int blockWidth
    • blockHeight

      protected int blockHeight
    • thresholdFromLocalBlocks

      protected boolean thresholdFromLocalBlocks
    • a

      protected byte a
    • b

      protected byte b
  • Constructor Details

    • ThresholdBlockMean

      protected ThresholdBlockMean​(boolean down)
  • Method Details