Tesseract-android-tools  1.0
 Todo Clases Namespaces Archivos Funciones Variables
Métodos públicos estáticos | Funciones estáticas del 'package' | Métodos privados estáticos | Atributos privados estáticos
Referencia de la Clase com.googlecode.leptonica.android.AdaptiveMap

Métodos de mapeo para adaptación de imagen. Más...

Lista de todos los miembros.

Métodos públicos estáticos

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.

Funciones estáticas del 'package'

 [static initializer]

Métodos privados estáticos

static native int nativeBackgroundNormMorph (int nativePix, int reduction, int size, int bgval)

Atributos privados estáticos

static final int NORM_BG_VALUE = 200
 Background brightness value; values over 200 may result in clipping.
static final int NORM_REDUCTION = 16
 Image reduction value; possible values are 1, 2, 4, 8.
static final int NORM_SIZE = 3
 Desired tile size; actual size may vary.

Descripción detallada

Métodos de mapeo para adaptación de imagen.

Definición en la línea 31 del archivo AdaptiveMap.java.


Documentación de las funciones miembro

com.googlecode.leptonica.android.AdaptiveMap.[static initializer] ( ) [static, package]

Normalizes an image's background using default parameters.

Parámetros:
pixsA source pix image.
Devuelve:
the source pix image with a normalized background

Definición en la línea 56 del archivo AdaptiveMap.java.

static Pix com.googlecode.leptonica.android.AdaptiveMap.backgroundNormMorph ( Pix  pixs,
int  normReduction,
int  normSize,
int  normBgValue 
) [static]

Normalizes an image's background to a specified value.

Notes:

  1. This is a top-level interface for normalizing the image intensity by mapping the image so that the background is near the input value 'bgval'.
  2. The input image is either grayscale or rgb.
  3. For each component in the input image, the background value is estimated using a grayscale closing; hence the 'Morph' in the function name.
  4. An optional binary mask can be specified, with the foreground pixels typically over image regions. The resulting background map values will be determined by surrounding pixels that are not under the mask foreground. The origin (0,0) of this mask is assumed to be aligned with the origin of the input image. This binary mask must not fully cover pixs, because then there will be no pixels in the input image available to compute the background.
  5. The map is computed at reduced size (given by 'reduction') from the input pixs and optional pixim. At this scale, pixs is closed to remove the background, using a square Sel of odd dimension. The product of reduction * size should be large enough to remove most of the text foreground.
  6. No convolutional smoothing needs to be done on the map before inverting it.
  7. A 'bgval' target background value for the normalized image. This should be at least 128. If set too close to 255, some clipping will occur in the result.
Parámetros:
pixsA source pix image.
normReductionReduction at which morphological closings are done.
normSizeSize of square Sel for the closing.
normBgValueTarget background value.
Devuelve:
the source pix image with a normalized background

Definición en la línea 102 del archivo AdaptiveMap.java.

Gráfico de llamadas para esta función:

static native int com.googlecode.leptonica.android.AdaptiveMap.nativeBackgroundNormMorph ( int  nativePix,
int  reduction,
int  size,
int  bgval 
) [static, private]

Gráfico de llamadas a esta función:


Documentación de los datos miembro

Background brightness value; values over 200 may result in clipping.

Definición en la línea 47 del archivo AdaptiveMap.java.

Image reduction value; possible values are 1, 2, 4, 8.

Definición en la línea 39 del archivo AdaptiveMap.java.

Desired tile size; actual size may vary.

Definición en la línea 42 del archivo AdaptiveMap.java.


La documentación para esta clase fue generada a partir del siguiente fichero:
 Todo Clases Namespaces Archivos Funciones Variables