Package boofcv.alg.filter.binary
Class ThresholdBlock_MT<T extends ImageGray<T>,S extends 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 ImageGray<T>,S extends 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 ImageGray<T>,
S extends ImageBase<S>> -
Field Summary
Fields inherited from class boofcv.alg.filter.binary.ThresholdBlock
blockHeight, blockWidth, original, processors, requestedBlockWidth, stats, thresholdFromLocalBlocks
-
Constructor Summary
ConstructorDescriptionThresholdBlock_MT
(ThresholdBlock.BlockProcessor<T, S> processor, ConfigLength requestedBlockWidth, boolean thresholdFromLocalBlocks, Class<T> imageClass) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
applyThreshold
(T input, GrayU8 output) Applies the dynamically computed threshold to each pixel in the image, one block at a timeprotected void
computeStatistics
(T input, int innerWidth, int innerHeight) Computes the min-max value for each block in the imageMethods inherited from class boofcv.alg.filter.binary.ThresholdBlock
getInputType, isThresholdFromLocalBlocks, process, setThresholdFromLocalBlocks
-
Constructor Details
-
ThresholdBlock_MT
public ThresholdBlock_MT(ThresholdBlock.BlockProcessor<T, S> processor, ConfigLength requestedBlockWidth, boolean thresholdFromLocalBlocks, Class<T> imageClass)
-
-
Method Details
-
computeStatistics
Computes the min-max value for each block in the image- Overrides:
computeStatistics
in classThresholdBlock<T extends ImageGray<T>,
S extends ImageBase<S>>
-
applyThreshold
Description copied from class:ThresholdBlock
Applies the dynamically computed threshold to each pixel in the image, one block at a time- Overrides:
applyThreshold
in classThresholdBlock<T extends ImageGray<T>,
S extends ImageBase<S>>
-