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