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] |
Finds and returns the skew angle using default parameters.
- Parámetros:
-
- Devuelve:
- the detected skew angle, or 0.0 on failure
Definición en la línea 69 del archivo Skew.java.
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:
-
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:
-
pixs | Input pix (1 bpp). |
sweepRange | Half the full search range, assumed about 0; in degrees. |
sweepDelta | Angle increment of sweep; in degrees. |
sweepReduction | Sweep reduction factor = 1, 2, 4 or 8. |
searchReduction | Binary search reduction factor = 1, 2, 4 or 8; and must not exceed redsweep. |
searchMinDelta | Minimum 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.
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:
- /DATOS/Android/Codigo/workspace/tesseract-android-tools/src/com/googlecode/leptonica/android/Skew.java