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
Referencia de la Clase com.googlecode.leptonica.android.ReadFile

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]
static native int com.googlecode.leptonica.android.ReadFile.nativeReadBitmap ( Bitmap  bitmap) [static, private]

Gráfico de llamadas a esta función:

static native int com.googlecode.leptonica.android.ReadFile.nativeReadBytes8 ( byte[]  data,
int  w,
int  h 
) [static, private]

Gráfico de llamadas a esta función:

static native int com.googlecode.leptonica.android.ReadFile.nativeReadFile ( String  filename) [static, private]
static native int com.googlecode.leptonica.android.ReadFile.nativeReadFiles ( String  dirname,
String  prefix 
) [static, private]
static native int com.googlecode.leptonica.android.ReadFile.nativeReadMem ( byte[]  data,
int  size 
) [static, private]
static native boolean com.googlecode.leptonica.android.ReadFile.nativeReplaceBytes8 ( int  nativePix,
byte[]  data,
int  w,
int  h 
) [static, private]

Gráfico de llamadas a esta función:

Creates a Pix object from Bitmap data. Currently supports only ARGB_8888-formatted bitmaps.

Parámetros:
bmpThe Bitmap object to convert to a Pix.
Devuelve:
a Pix object

Definición en la línea 196 del archivo ReadFile.java.

Gráfico de llamadas para esta función:

Gráfico de llamadas a esta función:

static Pix com.googlecode.leptonica.android.ReadFile.readBytes8 ( byte[]  pixelData,
int  width,
int  height 
) [static]

Creates an 8bpp Pix object from raw 8bpp grayscale pixels.

Parámetros:
pixelData8bpp grayscale pixel data.
widthThe width of the input image.
heightThe height of the input image.
Devuelve:
an 8bpp Pix object

Definición en la línea 78 del archivo ReadFile.java.

Gráfico de llamadas para esta función:

Creates a Pix object from encoded file data. Supported formats are BMP and JPEG.

Parámetros:
fileThe 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.

Gráfico de llamadas para esta función:

Gráfico de llamadas a esta función:

static Pixa com.googlecode.leptonica.android.ReadFile.readFiles ( File  dir,
String  prefix 
) [static]

Creates a Pixa object from encoded files in a directory. Supported formats are BMP and JPEG.

Parámetros:
dirThe directory containing the files.
prefixThe 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.

static Pix com.googlecode.leptonica.android.ReadFile.readMem ( byte[]  encodedData) [static]

Creates a 32bpp Pix object from encoded data. Supported formats are BMP and JPEG.

Parámetros:
encodedDataJPEG or BMP encoded byte data.
Devuelve:
a 32bpp Pix object

Definición en la línea 50 del archivo ReadFile.java.

Gráfico de llamadas para esta función:

static boolean com.googlecode.leptonica.android.ReadFile.replaceBytes8 ( Pix  pixs,
byte[]  pixelData,
int  width,
int  height 
) [static]

Replaces the bytes in an 8bpp Pix object with raw grayscale 8bpp pixels. Width and height be identical to the input Pix.

Parámetros:
pixsThe Pix whose bytes will be replaced.
pixelData8bpp grayscale pixel data.
widthThe width of the input image.
heightThe height of the input image.
Devuelve:
an 8bpp Pix object

Definición en la línea 113 del archivo ReadFile.java.

Gráfico de llamadas para esta función:


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