public class AdaptiveMap extends Object
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_MIN_COUNT |
static int |
DEFAULT_TILE_HEIGHT |
static int |
DEFAULT_TILE_WIDTH |
static int |
DEFAULT_X_SMOOTH_SIZE |
static int |
DEFAULT_Y_SMOOTH_SIZE |
Constructor and Description |
---|
AdaptiveMap() |
Modifier and Type | Method and Description |
---|---|
static Pix |
backgroundNormMorph(Pix pixs)
Normalizes an image's background using default parameters.
|
static Pix |
backgroundNormMorph(Pix pixs,
int normReduction,
int normSize,
int normBgValue)
Normalizes an image's background to a specified value.
|
static Pix |
pixContrastNorm(Pix pixs)
Adaptively attempts to expand the contrast to the full dynamic range in
each tile using default parameters.
|
static Pix |
pixContrastNorm(Pix pixs,
int sizeX,
int sizeY,
int minDiff,
int smoothX,
int smoothY)
Adaptively attempts to expand the contrast to the full dynamic range in
each tile.
|
public static final int DEFAULT_TILE_WIDTH
public static final int DEFAULT_TILE_HEIGHT
public static final int DEFAULT_MIN_COUNT
public static final int DEFAULT_X_SMOOTH_SIZE
public static final int DEFAULT_Y_SMOOTH_SIZE
public static Pix backgroundNormMorph(Pix pixs)
pixs
- A source pix image.public static Pix backgroundNormMorph(Pix pixs, int normReduction, int normSize, int normBgValue)
Notes:
pixs
- A source pix image.normReduction
- Reduction at which morphological closings are done.normSize
- Size of square Sel for the closing.normBgValue
- Target background value.public static Pix pixContrastNorm(Pix pixs)
pixs
- A source pix imagepixContrastNorm(Pix, int, int, int, int, int)
public static Pix pixContrastNorm(Pix pixs, int sizeX, int sizeY, int minDiff, int smoothX, int smoothY)
Notes:
pixs
- A source pix imagesizeX
- Tile widthsizeY
- Tile heightminDiff
- Minimum difference to accept as validsmoothX
- Half-width of convolution kernel applied to min and max
arrayssmoothY
- Half-height of convolution kernel applied to min and max
arrays