Class ThresholdBlock_MT<T extends boofcv.struct.image.ImageGray<T>,​S extends boofcv.struct.image.ImageBase<S>>

  • All Implemented Interfaces:
    InputToBinary<T>

    public class ThresholdBlock_MT<T extends boofcv.struct.image.ImageGray<T>,​S extends boofcv.struct.image.ImageBase<S>>
    extends ThresholdBlock<T,​S>

    Concurrent version of ThresholdBlock.

    • Constructor Detail

      • ThresholdBlock_MT

        public ThresholdBlock_MT​(ThresholdBlock.BlockProcessor<T,​S> processor,
                                 boofcv.struct.ConfigLength requestedBlockWidth,
                                 boolean thresholdFromLocalBlocks,
                                 java.lang.Class<T> imageClass)
    • Method Detail

      • computeStatistics

        protected void computeStatistics​(T input,
                                         int innerWidth,
                                         int innerHeight)
        Computes the min-max value for each block in the image
        Overrides:
        computeStatistics in class ThresholdBlock<T extends boofcv.struct.image.ImageGray<T>,​S extends boofcv.struct.image.ImageBase<S>>
      • applyThreshold

        protected void applyThreshold​(T input,
                                      boofcv.struct.image.GrayU8 output)
        Description copied from class: ThresholdBlock
        Applies the dynamically computed threshold to each pixel in the image, one block at a time
        Overrides:
        applyThreshold in class ThresholdBlock<T extends boofcv.struct.image.ImageGray<T>,​S extends boofcv.struct.image.ImageBase<S>>