Package boofcv.alg.filter.binary
Class ThresholdBlock_MT<T extends boofcv.struct.image.ImageGray<T>,S extends boofcv.struct.image.ImageBase<S>>
- java.lang.Object
-
- boofcv.alg.filter.binary.ThresholdBlock<T,S>
-
- boofcv.alg.filter.binary.ThresholdBlock_MT<T,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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class boofcv.alg.filter.binary.ThresholdBlock
ThresholdBlock.BlockProcessor<T extends boofcv.struct.image.ImageGray<T>,S extends boofcv.struct.image.ImageBase<S>>
-
-
Field Summary
-
Fields inherited from class boofcv.alg.filter.binary.ThresholdBlock
blockHeight, blockWidth, original, processors, requestedBlockWidth, stats, thresholdFromLocalBlocks
-
-
Constructor Summary
Constructors Constructor Description ThresholdBlock_MT(ThresholdBlock.BlockProcessor<T,S> processor, boofcv.struct.ConfigLength requestedBlockWidth, boolean thresholdFromLocalBlocks, java.lang.Class<T> imageClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidapplyThreshold(T input, boofcv.struct.image.GrayU8 output)Applies the dynamically computed threshold to each pixel in the image, one block at a timeprotected voidcomputeStatistics(T input, int innerWidth, int innerHeight)Computes the min-max value for each block in the image-
Methods inherited from class boofcv.alg.filter.binary.ThresholdBlock
getInputType, isThresholdFromLocalBlocks, process, setThresholdFromLocalBlocks
-
-
-
-
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:
computeStatisticsin classThresholdBlock<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:ThresholdBlockApplies the dynamically computed threshold to each pixel in the image, one block at a time- Overrides:
applyThresholdin classThresholdBlock<T extends boofcv.struct.image.ImageGray<T>,S extends boofcv.struct.image.ImageBase<S>>
-
-