|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sourceforge.javaocr.ocr.AbstractLinearImage
net.sourceforge.javaocr.ocr.PixelImage
public class PixelImage
contains pixel representation of an image
| Field Summary | |
|---|---|
int[] |
pixels
An array of pixels. |
| Fields inherited from class net.sourceforge.javaocr.ocr.AbstractLinearImage |
|---|
arrayHeight, arrayWidth, aspectRatio, border, currentIndex, height, originX, originY, step, width |
| Constructor Summary | |
|---|---|
PixelImage(int[] pixels,
int width,
int height)
Construct a new PixelImage object from an array of
pixels. |
|
PixelImage(int[] pixels,
int width,
int height,
int originX,
int originY,
int boxW,
int boxH)
|
|
PixelImage(int width,
int height)
create empty pixel image |
|
| Method Summary | |
|---|---|
Image |
chisel(int fromX,
int fromY,
int width,
int height)
chisel out sub-image out of original one. |
int |
get()
retrieve current pixel empty |
void |
put(int value)
save pixel to current position |
String |
toString()
|
| Methods inherited from class net.sourceforge.javaocr.ocr.AbstractLinearImage |
|---|
column, copy, flip, get, getArrayHeight, getArrayWidth, getAspectRatio, getHeight, getOriginX, getOriginY, getWidth, hasNext, horizontalSpanEquals, iterateH, iterateH, iterateV, iterateV, next, next, put, row, setCurrentIndex, verticalSpanEquals |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public final int[] pixels
| Constructor Detail |
|---|
public PixelImage(int width,
int height)
height - width -
public PixelImage(int[] pixels,
int width,
int height)
PixelImage object from an array of
pixels.
pixels - An array of pixels.width - Width of the image, in pixels.height - Height of the image, in pixels.
public PixelImage(int[] pixels,
int width,
int height,
int originX,
int originY,
int boxW,
int boxH)
| Method Detail |
|---|
public int get()
AbstractLinearImage
get in interface Imageget in class AbstractLinearImagepublic void put(int value)
AbstractLinearImage
put in interface Imageput in class AbstractLinearImage
public Image chisel(int fromX,
int fromY,
int width,
int height)
Image
fromX - subimage origin XfromY - subimage origin Ywidth - subimage widthheight - subimage height
public String toString()
toString in class AbstractLinearImage
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||