public class ThresholdBlockMinMax_F32 extends ThresholdBlockMinMax<GrayF32,InterleavedF32>
ThresholdBlockMinMax for input images of type GrayF32minimumSpreadblockHeight, blockWidth, requestedBlockWidth, stats, thresholdFromLocalBlocks| Constructor and Description |
|---|
ThresholdBlockMinMax_F32(float minimumSpread,
ConfigLength requestedBlockWidth,
float scale,
boolean down,
boolean thresholdFromLocalBlocks) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
computeBlockStatistics(int x0,
int y0,
int width,
int height,
int indexMinMax,
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 ThresholdBlockMinMax_F32(float minimumSpread,
ConfigLength requestedBlockWidth,
float scale,
boolean down,
boolean thresholdFromLocalBlocks)
protected void thresholdBlock(int blockX0,
int blockY0,
GrayF32 input,
GrayU8 output)
ThresholdBlockCommonthresholdBlock in class ThresholdBlockCommon<GrayF32,InterleavedF32>blockX0 - Block x-coordinateblockY0 - Block y-coordinateinput - Input imageoutput - Output imageprotected void computeBlockStatistics(int x0,
int y0,
int width,
int height,
int indexMinMax,
GrayF32 input)
ThresholdBlockCommoncomputeBlockStatistics in class ThresholdBlockCommon<GrayF32,InterleavedF32>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