Métodos para el tratamiento de imagen de entrada.
Más...
Lista de todos los miembros.
Métodos públicos estáticos |
static Pix | readBitmap (Bitmap bmp) |
| Creates a Pix object from Bitmap data. Currently supports only ARGB_8888-formatted bitmaps.
|
static Pix | readBytes8 (byte[] pixelData, int width, int height) |
| Creates an 8bpp Pix object from raw 8bpp grayscale pixels.
|
static Pix | readFile (File file) |
| Creates a Pix object from encoded file data. Supported formats are BMP and JPEG.
|
static Pixa | readFiles (File dir, String prefix) |
| Creates a Pixa object from encoded files in a directory. Supported formats are BMP and JPEG.
|
static Pix | readMem (byte[] encodedData) |
| Creates a 32bpp Pix object from encoded data. Supported formats are BMP and JPEG.
|
static boolean | replaceBytes8 (Pix pixs, byte[] pixelData, int width, int height) |
| Replaces the bytes in an 8bpp Pix object with raw grayscale 8bpp pixels. Width and height be identical to the input Pix.
|
Funciones estáticas del 'package' |
| [static initializer] |
Métodos privados estáticos |
static native int | nativeReadBitmap (Bitmap bitmap) |
static native int | nativeReadBytes8 (byte[] data, int w, int h) |
static native int | nativeReadFile (String filename) |
static native int | nativeReadFiles (String dirname, String prefix) |
static native int | nativeReadMem (byte[] data, int size) |
static native boolean | nativeReplaceBytes8 (int nativePix, byte[] data, int w, int h) |
Descripción detallada
Métodos para el tratamiento de imagen de entrada.
Definición en la línea 37 del archivo ReadFile.java.
Documentación de las funciones miembro
com.googlecode.leptonica.android.ReadFile.[static initializer] |
( |
| ) |
[static, package] |
Creates a Pix object from Bitmap data. Currently supports only ARGB_8888-formatted bitmaps.
- Parámetros:
-
bmp | The Bitmap object to convert to a Pix. |
- Devuelve:
- a Pix object
Definición en la línea 196 del archivo ReadFile.java.
Creates an 8bpp Pix object from raw 8bpp grayscale pixels.
- Parámetros:
-
pixelData | 8bpp grayscale pixel data. |
width | The width of the input image. |
height | The height of the input image. |
- Devuelve:
- an 8bpp Pix object
Definición en la línea 78 del archivo ReadFile.java.
Creates a Pix object from encoded file data. Supported formats are BMP and JPEG.
- Parámetros:
-
file | The JPEG or BMP-encoded file to read in as a Pix. |
- Devuelve:
- a Pix object
Definición en la línea 168 del archivo ReadFile.java.
Creates a Pixa object from encoded files in a directory. Supported formats are BMP and JPEG.
- Parámetros:
-
dir | The directory containing the files. |
prefix | The prefix of the files to load into a Pixa. |
- Devuelve:
- a Pixa object containing one Pix for each file
Definición en la línea 148 del archivo ReadFile.java.
Creates a 32bpp Pix object from encoded data. Supported formats are BMP and JPEG.
- Parámetros:
-
encodedData | JPEG or BMP encoded byte data. |
- Devuelve:
- a 32bpp Pix object
Definición en la línea 50 del archivo ReadFile.java.
Replaces the bytes in an 8bpp Pix object with raw grayscale 8bpp pixels. Width and height be identical to the input Pix.
- Parámetros:
-
pixs | The Pix whose bytes will be replaced. |
pixelData | 8bpp grayscale pixel data. |
width | The width of the input image. |
height | The height of the input image. |
- Devuelve:
- an 8bpp Pix object
Definición en la línea 113 del archivo ReadFile.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/ReadFile.java