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

Representación Java de un objeto nativo Pixa. Este objeto contiene varios objetos PIX y sus correspondientes objetos delimitadores. Más...

Lista de todos los miembros.

Clases

class  PixIterator

Métodos públicos

 Pixa (int nativePixa, int width, int height)
 Creates a wrapper for the specified native Pixa pointer.
void add (Pix pix, Box box, int mode)
 Adds a Pix and associated Box to this Pixa.
void addBox (Box box, int mode)
 Adds a Box to this Pixa.
void addPix (Pix pix, int mode)
 Adds a Pix to this Pixa.
Pixa copy ()
 Creates a shallow copy of this Pixa. Contained Pix are cloned, and the resulting Pixa may be recycled separately from the original.
Box getBox (int index)
 Returns the Box at the specified index, or null on error.
int[] getBoxGeometry (int index)
 Returns a geometry array for the Box at the specified index. See Box.INDEX_* for indices.
boolean getBoxGeometry (int index, int[] dimensions)
 Fills an array with the geometry of the Box at the specified index. See Box.INDEX_* for indices.
Rect getBoxRect (int index)
 Returns a bounding Rect for the Box at the specified index.
ArrayList< Rect > getBoxRects ()
 Returns an ArrayList of Box bounding Rects.
int getHeight ()
 Returns the height of this Pixa, or 0 if one was not set when it was created.
int getNativePixa ()
 Returns a pointer to the native PIXA object. This is used by native code.
Pix getPix (int index)
 Returns the Pix at the specified index, or null on error.
Rect getRect ()
 Returns a bounding Rect for this Pixa, which may be (0,0,0,0) if width and height were not specified on creation.
int getWidth ()
 Returns the width of this Pixa, or 0 if one was not set when it was created.
Iterator< Pixiterator ()
boolean join (Pixa otherPixa)
 Merges the contents of another Pixa into this one.
void mergeAndReplacePix (int indexA, int indexB)
 Merges the Pix at the specified indices and removes the Pix at the second index.
synchronized void recycle ()
 Recycles this Pixa and frees natively allocated memory. You may not access or modify the Pixa after calling this method.
void replacePix (int index, Pix pix, Box box)
 Replaces the Pix and Box at the specified index with the specified Pix and Box, both of which may be recycled after calling this method.
int size ()
 Returns the number of elements in this Pixa.
Pixa sort (int field, int order)
 Sorts this Pixa using the specified field and order. See Constants.L_SORT_BY_* and Constants.L_SORT_INCREASING or Constants.L_SORT_DECREASING.
boolean writeToFileRandomCmap (File file)
 Writes the components of this Pix to a bitmap-formatted file using a random color map.

Métodos públicos estáticos

static Pixa createPixa (int size)
 Creates a new Pixa with the specified minimum capacity. The Pixa will expand automatically as new Pix are added.
static Pixa createPixa (int size, int width, int height)
 Creates a new Pixa with the specified minimum capacity. The Pixa will expand automatically as new Pix are added.

Métodos protegidos

void finalize () throws Throwable

Funciones estáticas del 'package'

 [static initializer]

Atributos del 'package'

final int mHeight
 The specified height of this Pixa.
final int mNativePixa
 A pointer to the native PIXA object. This is used internally by native code.
final int mWidth
 The specified width of this Pixa.

Métodos privados estáticos

static native void nativeAdd (int nativePixa, int nativePix, int nativeBox, int mode)
static native void nativeAddBox (int nativePixa, int nativeBox, int mode)
static native void nativeAddPix (int nativePixa, int nativePix, int mode)
static native int nativeCopy (int nativePixa)
static native int nativeCreate (int size)
static native void nativeDestroy (int nativePixa)
static native int nativeGetBox (int nativePix, int index)
static native boolean nativeGetBoxGeometry (int nativePixa, int index, int[] dimensions)
static native int nativeGetCount (int nativePixa)
static native int nativeGetPix (int nativePix, int index)
static native boolean nativeJoin (int nativePixa, int otherPixa)
static native void nativeMergeAndReplacePix (int nativePixa, int indexA, int indexB)
static native void nativeReplacePix (int nativePixa, int index, int nativePix, int nativeBox)
static native int nativeSort (int nativePixa, int field, int order)
static native boolean nativeWriteToFileRandomCmap (int nativePixa, String fileName, int width, int height)

Atributos privados

boolean mRecycled

Descripción detallada

Representación Java de un objeto nativo Pixa. Este objeto contiene varios objetos PIX y sus correspondientes objetos delimitadores.

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


Documentación del constructor y destructor

com.googlecode.leptonica.android.Pixa.Pixa ( int  nativePixa,
int  width,
int  height 
)

Creates a wrapper for the specified native Pixa pointer.

Parámetros:
nativePixaNative pointer to a PIXA object.
widthThe width of the PIXA.
heightThe height of the PIXA.

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

Gráfico de llamadas a esta función:


Documentación de las funciones miembro

com.googlecode.leptonica.android.Pixa.[static initializer] ( ) [static, package]
void com.googlecode.leptonica.android.Pixa.add ( Pix  pix,
Box  box,
int  mode 
)

Adds a Pix and associated Box to this Pixa.

Parámetros:
pixThe Pix to add.
boxThe Box to add.
modeThe mode in which to add this Pix and Box, typically Constants.L_CLONE.

Definición en la línea 239 del archivo Pixa.java.

Gráfico de llamadas para esta función:

void com.googlecode.leptonica.android.Pixa.addBox ( Box  box,
int  mode 
)

Adds a Box to this Pixa.

Parámetros:
boxThe Box to add.
modeThe mode in which to add this Box, typically Constants.L_CLONE.

Definición en la línea 224 del archivo Pixa.java.

Gráfico de llamadas para esta función:

void com.googlecode.leptonica.android.Pixa.addPix ( Pix  pix,
int  mode 
)

Adds a Pix to this Pixa.

Parámetros:
pixThe Pix to add.
modeThe mode in which to add this Pix, typically Constants.L_CLONE.

Definición en la línea 211 del archivo Pixa.java.

Gráfico de llamadas para esta función:

Creates a shallow copy of this Pixa. Contained Pix are cloned, and the resulting Pixa may be recycled separately from the original.

Devuelve:
a shallow copy of this Pixa

Definición en la línea 128 del archivo Pixa.java.

Gráfico de llamadas para esta función:

Creates a new Pixa with the specified minimum capacity. The Pixa will expand automatically as new Pix are added.

Parámetros:
sizeThe minimum capacity of this Pixa.
Devuelve:
a new Pixa or null on error

Definición en la línea 66 del archivo Pixa.java.

static Pixa com.googlecode.leptonica.android.Pixa.createPixa ( int  size,
int  width,
int  height 
) [static]

Creates a new Pixa with the specified minimum capacity. The Pixa will expand automatically as new Pix are added.

If non-zero, the specified width and height will be used to specify the bounds of output images. *

Parámetros:
sizeThe minimum capacity of this Pixa.
width(Optional) The width of this Pixa, use 0 for default.
height(Optional) The height of this Pixa, use 0 for default.
Devuelve:
a new Pixa or null on error

Definición en la línea 85 del archivo Pixa.java.

Gráfico de llamadas para esta función:

void com.googlecode.leptonica.android.Pixa.finalize ( ) throws Throwable [protected]

Definición en la línea 186 del archivo Pixa.java.

Gráfico de llamadas para esta función:

Returns the Box at the specified index, or null on error.

Parámetros:
indexThe index of the Box to return.
Devuelve:
the Box at the specified index, or null on error

Definición en la línea 251 del archivo Pixa.java.

Gráfico de llamadas para esta función:

Returns a geometry array for the Box at the specified index. See Box.INDEX_* for indices.

Parámetros:
indexThe index of the Box to get the geometry of.
Devuelve:
a bounding Rect for the Box at the specified index

Definición en la línea 343 del archivo Pixa.java.

Gráfico de llamadas a esta función:

boolean com.googlecode.leptonica.android.Pixa.getBoxGeometry ( int  index,
int[]  dimensions 
)

Fills an array with the geometry of the Box at the specified index. See Box.INDEX_* for indices.

Parámetros:
indexThe index of the Box to get the geometry of.
dimensionsThe array to fill with Box geometry. Must be at least 4 elements.
Devuelve:
true on success

Definición en la línea 364 del archivo Pixa.java.

Gráfico de llamadas para esta función:

Returns a bounding Rect for the Box at the specified index.

Parámetros:
indexThe index of the Box to get the bounding Rect of.
Devuelve:
a bounding Rect for the Box at the specified index

Definición en la línea 318 del archivo Pixa.java.

Gráfico de llamadas para esta función:

Returns an ArrayList of Box bounding Rects.

Devuelve:
an ArrayList of Box bounding Rects

Definición en la línea 373 del archivo Pixa.java.

Gráfico de llamadas para esta función:

Returns the height of this Pixa, or 0 if one was not set when it was created.

Devuelve:
the height of this Pixa, or 0 if one was not set when it was created

Definición en la línea 297 del archivo Pixa.java.

Returns a pointer to the native PIXA object. This is used by native code.

Devuelve:
a pointer to the native PIXA object

Definición en la línea 118 del archivo Pixa.java.

Returns the Pix at the specified index, or null on error.

Parámetros:
indexThe index of the Pix to return.
Devuelve:
the Pix at the specified index, or null on error

Definición en la línea 269 del archivo Pixa.java.

Gráfico de llamadas para esta función:

Gráfico de llamadas a esta función:

Returns a bounding Rect for this Pixa, which may be (0,0,0,0) if width and height were not specified on creation.

Devuelve:
a bounding Rect for this Pixa

Definición en la línea 307 del archivo Pixa.java.

Returns the width of this Pixa, or 0 if one was not set when it was created.

Devuelve:
the width of this Pixa, or 0 if one was not set when it was created

Definición en la línea 286 del archivo Pixa.java.

Definición en la línea 436 del archivo Pixa.java.

Merges the contents of another Pixa into this one.

Parámetros:
otherPixa
Devuelve:
true on success

Definición en la línea 198 del archivo Pixa.java.

Gráfico de llamadas para esta función:

void com.googlecode.leptonica.android.Pixa.mergeAndReplacePix ( int  indexA,
int  indexB 
)

Merges the Pix at the specified indices and removes the Pix at the second index.

Parámetros:
indexAThe index of the first Pix.
indexBThe index of the second Pix, which will be removed after merging.

Definición en la línea 418 del archivo Pixa.java.

Gráfico de llamadas para esta función:

static native void com.googlecode.leptonica.android.Pixa.nativeAdd ( int  nativePixa,
int  nativePix,
int  nativeBox,
int  mode 
) [static, private]

Gráfico de llamadas a esta función:

static native void com.googlecode.leptonica.android.Pixa.nativeAddBox ( int  nativePixa,
int  nativeBox,
int  mode 
) [static, private]

Gráfico de llamadas a esta función:

static native void com.googlecode.leptonica.android.Pixa.nativeAddPix ( int  nativePixa,
int  nativePix,
int  mode 
) [static, private]

Gráfico de llamadas a esta función:

static native int com.googlecode.leptonica.android.Pixa.nativeCopy ( int  nativePixa) [static, private]

Gráfico de llamadas a esta función:

static native int com.googlecode.leptonica.android.Pixa.nativeCreate ( int  size) [static, private]

Gráfico de llamadas a esta función:

static native void com.googlecode.leptonica.android.Pixa.nativeDestroy ( int  nativePixa) [static, private]

Gráfico de llamadas a esta función:

static native int com.googlecode.leptonica.android.Pixa.nativeGetBox ( int  nativePix,
int  index 
) [static, private]

Gráfico de llamadas a esta función:

static native boolean com.googlecode.leptonica.android.Pixa.nativeGetBoxGeometry ( int  nativePixa,
int  index,
int[]  dimensions 
) [static, private]

Gráfico de llamadas a esta función:

static native int com.googlecode.leptonica.android.Pixa.nativeGetCount ( int  nativePixa) [static, private]

Gráfico de llamadas a esta función:

static native int com.googlecode.leptonica.android.Pixa.nativeGetPix ( int  nativePix,
int  index 
) [static, private]

Gráfico de llamadas a esta función:

static native boolean com.googlecode.leptonica.android.Pixa.nativeJoin ( int  nativePixa,
int  otherPixa 
) [static, private]

Gráfico de llamadas a esta función:

static native void com.googlecode.leptonica.android.Pixa.nativeMergeAndReplacePix ( int  nativePixa,
int  indexA,
int  indexB 
) [static, private]

Gráfico de llamadas a esta función:

static native void com.googlecode.leptonica.android.Pixa.nativeReplacePix ( int  nativePixa,
int  index,
int  nativePix,
int  nativeBox 
) [static, private]

Gráfico de llamadas a esta función:

static native int com.googlecode.leptonica.android.Pixa.nativeSort ( int  nativePixa,
int  field,
int  order 
) [static, private]

Gráfico de llamadas a esta función:

static native boolean com.googlecode.leptonica.android.Pixa.nativeWriteToFileRandomCmap ( int  nativePixa,
String  fileName,
int  width,
int  height 
) [static, private]

Gráfico de llamadas a esta función:

Recycles this Pixa and frees natively allocated memory. You may not access or modify the Pixa after calling this method.

Any Pix obtained from this Pixa or copies of this Pixa will still be accessible until they are explicitly recycled or finalized by the garbage collector.

Definición en la línea 177 del archivo Pixa.java.

Gráfico de llamadas para esta función:

Gráfico de llamadas a esta función:

void com.googlecode.leptonica.android.Pixa.replacePix ( int  index,
Pix  pix,
Box  box 
)

Replaces the Pix and Box at the specified index with the specified Pix and Box, both of which may be recycled after calling this method.

Parámetros:
indexThe index of the Pix to replace.
pixThe Pix to replace the existing Pix.
boxThe Box to replace the existing Box.

Definición en la línea 404 del archivo Pixa.java.

Gráfico de llamadas para esta función:

Returns the number of elements in this Pixa.

Devuelve:
the number of elements in this Pixa

Definición en la línea 165 del archivo Pixa.java.

Gráfico de llamadas para esta función:

Gráfico de llamadas a esta función:

Pixa com.googlecode.leptonica.android.Pixa.sort ( int  field,
int  order 
)

Sorts this Pixa using the specified field and order. See Constants.L_SORT_BY_* and Constants.L_SORT_INCREASING or Constants.L_SORT_DECREASING.

Parámetros:
fieldThe field to sort by. See Constants.L_SORT_BY_*.
orderThe order in which to sort. Must be either Constants.L_SORT_INCREASING or Constants.L_SORT_DECREASING.
Devuelve:
a sorted copy of this Pixa

Definición en la línea 150 del archivo Pixa.java.

Gráfico de llamadas para esta función:

Writes the components of this Pix to a bitmap-formatted file using a random color map.

Parámetros:
fileThe file to write to.
Devuelve:
true on success

Definición en la línea 430 del archivo Pixa.java.

Gráfico de llamadas para esta función:


Documentación de los datos miembro

The specified height of this Pixa.

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

A pointer to the native PIXA object. This is used internally by native code.

Definición en la línea 48 del archivo Pixa.java.

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

The specified width of this Pixa.

Definición en la línea 51 del archivo Pixa.java.


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