Package boofcv.alg.filter.binary.impl
Class ThresholdBlockMean_U8
java.lang.Object
boofcv.alg.filter.binary.ThresholdBlockMean<GrayU8>
boofcv.alg.filter.binary.impl.ThresholdBlockMean_U8
- All Implemented Interfaces:
ThresholdBlock.BlockProcessor<GrayU8,
GrayU8>
Implementation of
ThresholdBlockMean
for input images of type GrayU8
-
Field Summary
Fields inherited from class boofcv.alg.filter.binary.ThresholdBlockMean
a, b, blockHeight, blockWidth, thresholdFromLocalBlocks
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
computeBlockStatistics
(int x0, int y0, int width, int height, int indexStats, GrayU8 input, GrayU8 stats) Computes the min-max value inside a blockcopy()
Creates a copy.void
thresholdBlock
(int blockX0, int blockY0, GrayU8 input, GrayU8 stats, GrayU8 output) Thresholds all the pixels inside the specified blockMethods inherited from class boofcv.alg.filter.binary.ThresholdBlockMean
init, isDown
-
Constructor Details
-
ThresholdBlockMean_U8
public ThresholdBlockMean_U8(double scale, boolean down)
-
-
Method Details
-
thresholdBlock
Description copied from interface:ThresholdBlock.BlockProcessor
Thresholds all the pixels inside the specified block- Parameters:
blockX0
- Block x-coordinateblockY0
- Block y-coordinateinput
- Input imageoutput
- Output image
-
copy
Description copied from interface:ThresholdBlock.BlockProcessor
Creates a copy. For concurrent code -
createStats
-
computeBlockStatistics
public void computeBlockStatistics(int x0, int y0, int width, int height, int indexStats, GrayU8 input, GrayU8 stats) Description copied from interface:ThresholdBlock.BlockProcessor
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
-