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.
ThresholdBlock.BlockProcessor<T extends boofcv.struct.image.ImageGray<T>,S extends boofcv.struct.image.ImageBase<S>>blockHeight, blockWidth, original, processors, requestedBlockWidth, stats, thresholdFromLocalBlocks| Constructor and Description |
|---|
ThresholdBlock_MT(ThresholdBlock.BlockProcessor<T,S> processor,
boofcv.struct.ConfigLength requestedBlockWidth,
boolean thresholdFromLocalBlocks,
java.lang.Class<T> imageClass) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
applyThreshold(T input,
boofcv.struct.image.GrayU8 output)
Applies the dynamically computed threshold to each pixel in the image, one block at a time
|
protected void |
computeStatistics(T input,
int innerWidth,
int innerHeight)
Computes the min-max value for each block in the image
|
getInputType, isThresholdFromLocalBlocks, process, setThresholdFromLocalBlockspublic ThresholdBlock_MT(ThresholdBlock.BlockProcessor<T,S> processor, boofcv.struct.ConfigLength requestedBlockWidth, boolean thresholdFromLocalBlocks, java.lang.Class<T> imageClass)
protected void computeStatistics(T input, int innerWidth, int innerHeight)
computeStatistics in class ThresholdBlock<T extends boofcv.struct.image.ImageGray<T>,S extends boofcv.struct.image.ImageBase<S>>protected void applyThreshold(T input, boofcv.struct.image.GrayU8 output)
ThresholdBlockapplyThreshold in class ThresholdBlock<T extends boofcv.struct.image.ImageGray<T>,S extends boofcv.struct.image.ImageBase<S>>