public class ThresholdSquareBlockMinMax_F32 extends ThresholdSquareBlockMinMax<GrayF32,InterleavedF32>
ThresholdSquareBlockMinMax for input images of type GrayF32blockHeight, blockWidth, minimumSpread, minmax, requestedBlockWidth| Constructor and Description |
|---|
ThresholdSquareBlockMinMax_F32(float minimumSpread,
int requestedBlockWidth,
float scale,
boolean down) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
computeMinMaxBlock(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
|
processpublic ThresholdSquareBlockMinMax_F32(float minimumSpread,
int requestedBlockWidth,
float scale,
boolean down)
protected void thresholdBlock(int blockX0,
int blockY0,
GrayF32 input,
GrayU8 output)
ThresholdSquareBlockMinMaxthresholdBlock in class ThresholdSquareBlockMinMax<GrayF32,InterleavedF32>blockX0 - Block x-coordinateblockY0 - Block y-coordinateinput - Input imageoutput - Output imageprotected void computeMinMaxBlock(int x0,
int y0,
int width,
int height,
int indexMinMax,
GrayF32 input)
ThresholdSquareBlockMinMaxcomputeMinMaxBlock in class ThresholdSquareBlockMinMax<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 min-max image pixelinput - Input image