Package boofcv.alg.filter.binary
Interface ThresholdBlock.BlockProcessor<T extends ImageGray<T>,S extends ImageBase<S>>
- All Known Implementing Classes:
ThresholdBlockMean,ThresholdBlockMean_F32,ThresholdBlockMean_U8,ThresholdBlockMinMax,ThresholdBlockMinMax_F32,ThresholdBlockMinMax_U8,ThresholdBlockOtsu
-
Method Summary
Modifier and TypeMethodDescriptionvoidcomputeBlockStatistics(int x0, int y0, int width, int height, int indexStats, T input, S stats) Computes the min-max value inside a blockcopy()Creates a copy.voidinit(int blockWidth, int blockHeight, boolean thresholdFromLocalBlocks) voidthresholdBlock(int blockX0, int blockY0, T input, S stats, GrayU8 output) Thresholds all the pixels inside the specified block
-
Method Details
-
createStats
S createStats() -
init
void init(int blockWidth, int blockHeight, boolean thresholdFromLocalBlocks) -
computeBlockStatistics
void computeBlockStatistics(int x0, int y0, int width, int height, int indexStats, T input, S stats) Computes the min-max value inside a block- Parameters:
x0- lower bound pixel value of block, x-axisy0- upper bound pixel value of block, y-axiswidth- Block's widthheight- Block's heightindexStats- array index of statistics image pixelinput- Input image
-
thresholdBlock
Thresholds all the pixels inside the specified block- Parameters:
blockX0- Block x-coordinateblockY0- Block y-coordinateinput- Input imageoutput- Output image
-
copy
ThresholdBlock.BlockProcessor<T,S> copy()Creates a copy. For concurrent code
-