| Package | Description |
|---|---|
| com.googlecode.leptonica.android | |
| com.googlecode.tesseract.android |
| Modifier and Type | Method and Description |
|---|---|
static Pix |
AdaptiveMap.backgroundNormMorph(Pix pixs)
Normalizes an image's background using default parameters.
|
static Pix |
AdaptiveMap.backgroundNormMorph(Pix pixs,
int normReduction,
int normSize,
int normBgValue)
Normalizes an image's background to a specified value.
|
Pix |
Pix.clone()
Returns a clone of this Pix.
|
static Pix |
Convert.convertTo8(Pix pixs)
Converts an image of any bit depth to 8-bit grayscale.
|
Pix |
Pix.copy()
Returns a deep copy of this Pix that can be modified without affecting
the original Pix.
|
static Pix |
Pix.createFromPix(byte[] pixData,
int width,
int height,
int depth)
Creates a new Pix from raw Pix data obtained from getData().
|
Pix |
Pixa.getPix(int index)
Returns the Pix at the specified index, or
null on error. |
static Pix |
Binarize.otsuAdaptiveThreshold(Pix pixs)
Performs locally-adaptive Otsu threshold binarization with default
parameters.
|
static Pix |
Binarize.otsuAdaptiveThreshold(Pix pixs,
int sizeX,
int sizeY,
int smoothX,
int smoothY,
float scoreFraction)
Performs locally-adaptive Otsu threshold binarization.
|
static Pix |
ReadFile.readBitmap(android.graphics.Bitmap bmp)
Creates a Pix object from Bitmap data.
|
static Pix |
ReadFile.readBytes8(byte[] pixelData,
int width,
int height)
Creates an 8bpp Pix object from raw 8bpp grayscale pixels.
|
static Pix |
ReadFile.readFile(File file)
Creates a Pix object from encoded file data.
|
static Pix |
ReadFile.readMem(byte[] encodedData)
Creates a 32bpp Pix object from encoded data.
|
static Pix |
Rotate.rotate(Pix pixs,
float degrees)
Performs rotation using the default parameters.
|
static Pix |
Rotate.rotate(Pix pixs,
float degrees,
boolean quality)
Performs rotation with resizing using the default parameters.
|
static Pix |
Rotate.rotate(Pix pixs,
float degrees,
boolean quality,
boolean resize)
Performs basic image rotation about the center.
|
static Pix |
Binarize.sauvolaBinarizeTiled(Pix pixs,
int whsize,
float factor,
int nx,
int ny)
Performs Sauvola binarization.
|
static Pix |
Scale.scale(Pix pixs,
float scale)
Scales the Pix to specified scale.
|
static Pix |
Scale.scale(Pix pixs,
float scaleX,
float scaleY)
Scales the Pix to specified x and y scale.
|
static Pix |
Scale.scaleToSize(Pix pixs,
int width,
int height,
Scale.ScaleType type)
Scales the Pix to a specified width and height using a specified scaling
type (fill, stretch, etc.).
|
static Pix |
Enhance.unsharpMasking(Pix pixs,
int halfwidth,
float fraction)
Performs unsharp masking (edge enhancement).
|
| Modifier and Type | Method and Description |
|---|---|
Iterator<Pix> |
Pixa.iterator() |
| Modifier and Type | Method and Description |
|---|---|
void |
Pixa.add(Pix pix,
Box box,
int mode)
Adds a Pix and associated Box to this Pixa.
|
void |
Pixa.addPix(Pix pix,
int mode)
Adds a Pix to this Pixa.
|
static Pix |
AdaptiveMap.backgroundNormMorph(Pix pixs)
Normalizes an image's background using default parameters.
|
static Pix |
AdaptiveMap.backgroundNormMorph(Pix pixs,
int normReduction,
int normSize,
int normBgValue)
Normalizes an image's background to a specified value.
|
static byte[] |
JpegIO.compressToJpeg(Pix pixs)
Returns a compressed JPEG byte representation of this Pix using default
parameters.
|
static byte[] |
JpegIO.compressToJpeg(Pix pixs,
int quality,
boolean progressive)
Returns a compressed JPEG byte representation of this Pix.
|
static Pix |
Convert.convertTo8(Pix pixs)
Converts an image of any bit depth to 8-bit grayscale.
|
static float |
Skew.findSkew(Pix pixs)
Finds and returns the skew angle using default parameters.
|
static float |
Skew.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.
|
static Pix |
Binarize.otsuAdaptiveThreshold(Pix pixs)
Performs locally-adaptive Otsu threshold binarization with default
parameters.
|
static Pix |
Binarize.otsuAdaptiveThreshold(Pix pixs,
int sizeX,
int sizeY,
int smoothX,
int smoothY,
float scoreFraction)
Performs locally-adaptive Otsu threshold binarization.
|
static boolean |
ReadFile.replaceBytes8(Pix pixs,
byte[] pixelData,
int width,
int height)
Replaces the bytes in an 8bpp Pix object with raw grayscale 8bpp pixels.
|
void |
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.
|
static Pix |
Rotate.rotate(Pix pixs,
float degrees)
Performs rotation using the default parameters.
|
static Pix |
Rotate.rotate(Pix pixs,
float degrees,
boolean quality)
Performs rotation with resizing using the default parameters.
|
static Pix |
Rotate.rotate(Pix pixs,
float degrees,
boolean quality,
boolean resize)
Performs basic image rotation about the center.
|
static Pix |
Binarize.sauvolaBinarizeTiled(Pix pixs,
int whsize,
float factor,
int nx,
int ny)
Performs Sauvola binarization.
|
static Pix |
Scale.scale(Pix pixs,
float scale)
Scales the Pix to specified scale.
|
static Pix |
Scale.scale(Pix pixs,
float scaleX,
float scaleY)
Scales the Pix to specified x and y scale.
|
static Pix |
Scale.scaleToSize(Pix pixs,
int width,
int height,
Scale.ScaleType type)
Scales the Pix to a specified width and height using a specified scaling
type (fill, stretch, etc.).
|
static Pix |
Enhance.unsharpMasking(Pix pixs,
int halfwidth,
float fraction)
Performs unsharp masking (edge enhancement).
|
static android.graphics.Bitmap |
WriteFile.writeBitmap(Pix pixs)
Writes a Pix to an Android Bitmap object.
|
static byte[] |
WriteFile.writeBytes8(Pix pixs)
Write an 8bpp Pix to a flat byte array.
|
static int |
WriteFile.writeBytes8(Pix pixs,
byte[] data)
Write an 8bpp Pix to a flat byte array.
|
static boolean |
WriteFile.writeImpliedFormat(Pix pixs,
File file)
Writes a Pix to file using the file extension as the output format;
supported formats are .jpg or .jpeg for JPEG and .bmp for bitmap.
|
static boolean |
WriteFile.writeImpliedFormat(Pix pixs,
File file,
int quality,
boolean progressive)
Writes a Pix to file using the file extension as the output format;
supported formats are .jpg or .jpeg for JPEG and .bmp for bitmap.
|
static byte[] |
WriteFile.writeMem(Pix pixs,
int format)
Write a Pix to a byte array using the specified encoding from
Constants.IFF_*.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
TessBaseAPI.addPageToDocument(Pix imageToProcess,
String imageToWrite,
TessPdfRenderer tessPdfRenderer)
Appends sandwiched page to opened document (if any).
|
void |
TessBaseAPI.setImage(Pix image)
Provides a Leptonica pix format image for Tesseract to recognize.
|
Copyright © 2014. All rights reserved.