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