Package boofcv.alg.filter.binary.impl
Class ThresholdBlockMean_U8
- java.lang.Object
-
- boofcv.alg.filter.binary.ThresholdBlockMean<boofcv.struct.image.GrayU8>
-
- boofcv.alg.filter.binary.impl.ThresholdBlockMean_U8
-
- All Implemented Interfaces:
ThresholdBlock.BlockProcessor<boofcv.struct.image.GrayU8,boofcv.struct.image.GrayU8>
public class ThresholdBlockMean_U8 extends ThresholdBlockMean<boofcv.struct.image.GrayU8>
Implementation ofThresholdBlockMeanfor input images of typeGrayU8
-
-
Field Summary
-
Fields inherited from class boofcv.alg.filter.binary.ThresholdBlockMean
a, b, blockHeight, blockWidth, thresholdFromLocalBlocks
-
-
Constructor Summary
Constructors Constructor Description ThresholdBlockMean_U8(double scale, boolean down)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcomputeBlockStatistics(int x0, int y0, int width, int height, int indexStats, boofcv.struct.image.GrayU8 input, boofcv.struct.image.GrayU8 stats)Computes the min-max value inside a blockThresholdBlock.BlockProcessor<boofcv.struct.image.GrayU8,boofcv.struct.image.GrayU8>copy()Creates a copy.boofcv.struct.image.GrayU8createStats()voidthresholdBlock(int blockX0, int blockY0, boofcv.struct.image.GrayU8 input, boofcv.struct.image.GrayU8 stats, boofcv.struct.image.GrayU8 output)Thresholds all the pixels inside the specified block-
Methods inherited from class boofcv.alg.filter.binary.ThresholdBlockMean
init, isDown
-
-
-
-
Method Detail
-
thresholdBlock
public void thresholdBlock(int blockX0, int blockY0, boofcv.struct.image.GrayU8 input, boofcv.struct.image.GrayU8 stats, boofcv.struct.image.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
-
copy
public ThresholdBlock.BlockProcessor<boofcv.struct.image.GrayU8,boofcv.struct.image.GrayU8> copy()
Description copied from interface:ThresholdBlock.BlockProcessorCreates a copy. For concurrent code
-
createStats
public boofcv.struct.image.GrayU8 createStats()
-
computeBlockStatistics
public void computeBlockStatistics(int x0, int y0, int width, int height, int indexStats, boofcv.struct.image.GrayU8 input, boofcv.struct.image.GrayU8 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 heightindexStats- array index of statistics image pixelinput- Input image
-
-