Representación Java de un objeto nativo Pixa. Este objeto contiene varios objetos PIX y sus correspondientes objetos delimitadores. Más...
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< Pix > | iterator () |
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 |
Representación Java de un objeto nativo Pixa. Este objeto contiene varios objetos PIX y sus correspondientes objetos delimitadores.
com.googlecode.leptonica.android.Pixa.Pixa | ( | int | nativePixa, |
int | width, | ||
int | height | ||
) |
com.googlecode.leptonica.android.Pixa.[static initializer] | ( | ) | [static, package] |
void com.googlecode.leptonica.android.Pixa.add | ( | Pix | pix, |
Box | box, | ||
int | mode | ||
) |
void com.googlecode.leptonica.android.Pixa.addBox | ( | Box | box, |
int | mode | ||
) |
void com.googlecode.leptonica.android.Pixa.addPix | ( | Pix | pix, |
int | mode | ||
) |
static Pixa com.googlecode.leptonica.android.Pixa.createPixa | ( | int | size | ) | [static] |
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. *
size | The 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. |
null
on error Definición en la línea 85 del archivo Pixa.java.
void com.googlecode.leptonica.android.Pixa.finalize | ( | ) | throws Throwable [protected] |
Box com.googlecode.leptonica.android.Pixa.getBox | ( | int | index | ) |
int [] com.googlecode.leptonica.android.Pixa.getBoxGeometry | ( | int | index | ) |
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.
index | The index of the Box to get the geometry of. |
dimensions | The array to fill with Box geometry. Must be at least 4 elements. |
true
on success Definición en la línea 364 del archivo Pixa.java.
Rect com.googlecode.leptonica.android.Pixa.getBoxRect | ( | int | index | ) |
ArrayList<Rect> com.googlecode.leptonica.android.Pixa.getBoxRects | ( | ) |
Pix com.googlecode.leptonica.android.Pixa.getPix | ( | int | index | ) |
Iterator<Pix> com.googlecode.leptonica.android.Pixa.iterator | ( | ) |
boolean com.googlecode.leptonica.android.Pixa.join | ( | Pixa | otherPixa | ) |
void com.googlecode.leptonica.android.Pixa.mergeAndReplacePix | ( | int | indexA, |
int | indexB | ||
) |
static native void com.googlecode.leptonica.android.Pixa.nativeAdd | ( | int | nativePixa, |
int | nativePix, | ||
int | nativeBox, | ||
int | mode | ||
) | [static, private] |
static native void com.googlecode.leptonica.android.Pixa.nativeAddBox | ( | int | nativePixa, |
int | nativeBox, | ||
int | mode | ||
) | [static, private] |
static native void com.googlecode.leptonica.android.Pixa.nativeAddPix | ( | int | nativePixa, |
int | nativePix, | ||
int | mode | ||
) | [static, private] |
static native int com.googlecode.leptonica.android.Pixa.nativeCopy | ( | int | nativePixa | ) | [static, private] |
static native int com.googlecode.leptonica.android.Pixa.nativeCreate | ( | int | size | ) | [static, private] |
static native void com.googlecode.leptonica.android.Pixa.nativeDestroy | ( | int | nativePixa | ) | [static, private] |
static native int com.googlecode.leptonica.android.Pixa.nativeGetBox | ( | int | nativePix, |
int | index | ||
) | [static, private] |
static native boolean com.googlecode.leptonica.android.Pixa.nativeGetBoxGeometry | ( | int | nativePixa, |
int | index, | ||
int[] | dimensions | ||
) | [static, private] |
static native int com.googlecode.leptonica.android.Pixa.nativeGetCount | ( | int | nativePixa | ) | [static, private] |
static native int com.googlecode.leptonica.android.Pixa.nativeGetPix | ( | int | nativePix, |
int | index | ||
) | [static, private] |
static native boolean com.googlecode.leptonica.android.Pixa.nativeJoin | ( | int | nativePixa, |
int | otherPixa | ||
) | [static, private] |
static native void com.googlecode.leptonica.android.Pixa.nativeMergeAndReplacePix | ( | int | nativePixa, |
int | indexA, | ||
int | indexB | ||
) | [static, private] |
static native void com.googlecode.leptonica.android.Pixa.nativeReplacePix | ( | int | nativePixa, |
int | index, | ||
int | nativePix, | ||
int | nativeBox | ||
) | [static, private] |
static native int com.googlecode.leptonica.android.Pixa.nativeSort | ( | int | nativePixa, |
int | field, | ||
int | order | ||
) | [static, private] |
static native boolean com.googlecode.leptonica.android.Pixa.nativeWriteToFileRandomCmap | ( | int | nativePixa, |
String | fileName, | ||
int | width, | ||
int | height | ||
) | [static, private] |
synchronized void com.googlecode.leptonica.android.Pixa.recycle | ( | ) |
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.
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.
index | The index of the Pix to replace. |
pix | The Pix to replace the existing Pix. |
box | The Box to replace the existing Box. |
Definición en la línea 404 del archivo Pixa.java.
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.
field | The field to sort by. See Constants.L_SORT_BY_*. |
order | The order in which to sort. Must be either Constants.L_SORT_INCREASING or Constants.L_SORT_DECREASING. |
Definición en la línea 150 del archivo Pixa.java.
boolean com.googlecode.leptonica.android.Pixa.writeToFileRandomCmap | ( | File | file | ) |
final int com.googlecode.leptonica.android.Pixa.mHeight [package] |
final int com.googlecode.leptonica.android.Pixa.mNativePixa [package] |
boolean com.googlecode.leptonica.android.Pixa.mRecycled [private] |
final int com.googlecode.leptonica.android.Pixa.mWidth [package] |