public class AdaptiveMap
Image adaptive mapping methods.
public static int DEFAULT_TILE_WIDTH
public static int DEFAULT_TILE_HEIGHT
public static int DEFAULT_MIN_COUNT
public static int DEFAULT_X_SMOOTH_SIZE
public static int DEFAULT_Y_SMOOTH_SIZE
public static Pix backgroundNormMorph(Pix pixs)
Normalizes an image's background using default parameters.
pixs - A source pix image.public static Pix backgroundNormMorph(Pix pixs, int normReduction, int normSize, int normBgValue)
Normalizes an image's background to a specified value.
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)
Adaptively attempts to expand the contrast to the full dynamic range in each tile using default parameters.
pixs - A source pix image#pixContrastNorm(Pix, int, int, int, int, int)public 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.
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