public class ThresholdBlockMean_F32 extends ThresholdBlockMean<GrayF32>
ThresholdBlockMean for input images of type GrayU8blockHeight, blockWidth, requestedBlockWidth, stats, thresholdFromLocalBlocks| Constructor and Description |
|---|
ThresholdBlockMean_F32(ConfigLength requestedBlockWidth,
double scale,
boolean down,
boolean thresholdFromLocalBlocks) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
computeBlockStatistics(int x0,
int y0,
int width,
int height,
int indexStats,
GrayF32 input)
Computes the min-max value inside a block
|
protected void |
thresholdBlock(int blockX0,
int blockY0,
GrayF32 input,
GrayU8 output)
Thresholds all the pixels inside the specified block
|
computeStatistics, getInputType, isThresholdFromLocalBlocks, process, setThresholdFromLocalBlockspublic ThresholdBlockMean_F32(ConfigLength requestedBlockWidth, double scale, boolean down, boolean thresholdFromLocalBlocks)
protected void thresholdBlock(int blockX0,
int blockY0,
GrayF32 input,
GrayU8 output)
ThresholdBlockCommonthresholdBlock in class ThresholdBlockCommon<GrayF32,GrayF32>blockX0 - Block x-coordinateblockY0 - Block y-coordinateinput - Input imageoutput - Output imageprotected void computeBlockStatistics(int x0,
int y0,
int width,
int height,
int indexStats,
GrayF32 input)
ThresholdBlockCommoncomputeBlockStatistics in class ThresholdBlockCommon<GrayF32,GrayF32>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