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

Métodos para la detección de la rotación e inclinación de la imagen. Más...

Lista de todos los miembros.

Métodos públicos estáticos

static float findSkew (Pix pixs)
 Finds and returns the skew angle using default parameters.
static float findSkew (Pix pixs, float sweepRange, float sweepDelta, int sweepReduction, int searchReduction, float searchMinDelta)
 Finds and returns the skew angle, doing first a sweep through a set of equal angles, and then doing a binary search until convergence.

Atributos públicos estáticos

static final float SEARCH_MIN_DELTA = 0.01f
 Default search minimum delta, reasonably accurate within 0.05 degrees.
static final int SEARCH_REDUCTION = 4
 Default sweep reduction, one-fourth the size of the original image.
static final float SWEEP_DELTA = 5.0f
 Default sweep delta, reasonably accurate within 0.05 degrees.
static final float SWEEP_RANGE = 30.0f
 Default range for sweep, will detect rotation of + or - 30 degrees.
static final int SWEEP_REDUCTION = 8
 Default sweep reduction, one-eighth the size of the original image.

Funciones estáticas del 'package'

 [static initializer]

Métodos privados estáticos

static native float nativeFindSkew (int nativePix, float sweepRange, float sweepDelta, int sweepReduction, int searchReduction, float searchMinDelta)

Descripción detallada

Métodos para la detección de la rotación e inclinación de la imagen.

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


Documentación de las funciones miembro

com.googlecode.leptonica.android.Skew.[static initializer] ( ) [static, package]
static float com.googlecode.leptonica.android.Skew.findSkew ( Pix  pixs) [static]

Finds and returns the skew angle using default parameters.

Parámetros:
pixsInput pix (1 bpp).
Devuelve:
the detected skew angle, or 0.0 on failure

Definición en la línea 69 del archivo Skew.java.

static float com.googlecode.leptonica.android.Skew.findSkew ( Pix  pixs,
float  sweepRange,
float  sweepDelta,
int  sweepReduction,
int  searchReduction,
float  searchMinDelta 
) [static]

Finds and returns the skew angle, doing first a sweep through a set of equal angles, and then doing a binary search until convergence.

Notes:

  1. In computing the differential line sum variance score, we sum the result over scanlines, but we always skip:
    • at least one scanline
    • not more than 10% of the image height
    • not more than 5% of the image width
Parámetros:
pixsInput pix (1 bpp).
sweepRangeHalf the full search range, assumed about 0; in degrees.
sweepDeltaAngle increment of sweep; in degrees.
sweepReductionSweep reduction factor = 1, 2, 4 or 8.
searchReductionBinary search reduction factor = 1, 2, 4 or 8; and must not exceed redsweep.
searchMinDeltaMinimum binary search increment angle; in degrees.
Devuelve:
the detected skew angle, or 0.0 on failure

Definición en la línea 105 del archivo Skew.java.

Gráfico de llamadas para esta función:

static native float com.googlecode.leptonica.android.Skew.nativeFindSkew ( int  nativePix,
float  sweepRange,
float  sweepDelta,
int  sweepReduction,
int  searchReduction,
float  searchMinDelta 
) [static, private]

Gráfico de llamadas a esta función:


Documentación de los datos miembro

Default search minimum delta, reasonably accurate within 0.05 degrees.

Definición en la línea 60 del archivo Skew.java.

Default sweep reduction, one-fourth the size of the original image.

Definición en la línea 54 del archivo Skew.java.

Default sweep delta, reasonably accurate within 0.05 degrees.

Definición en la línea 44 del archivo Skew.java.

Default range for sweep, will detect rotation of + or - 30 degrees.

Definición en la línea 41 del archivo Skew.java.

Default sweep reduction, one-eighth the size of the original image.

Definición en la línea 49 del archivo Skew.java.


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