public class Document
extends java.lang.Object
A document consists of an image and a Vector of letters, which represent position, value and the original image (both scaled and unscaled of each symbol in the file.
Letter| Constructor and Description |
|---|
Document(java.awt.image.BufferedImage p_image)
A simple constructor to instantiate the image on which the document is to be based.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addLetter(Letter p_letter)
Adds a letter to the list of letters.
|
void |
clearLetters()
Clears the document of letters.
|
java.awt.image.BufferedImage |
getImage()
Returns the image that this document is based on.
|
Letter[] |
getLetters()
Returns an array of all Letters contained within this document.
|
void |
setImage(java.awt.image.BufferedImage p_image)
Sets the image that this document is based on.
|
public Document(java.awt.image.BufferedImage p_image)
p_image - The image on which to base the new Documentpublic void setImage(java.awt.image.BufferedImage p_image)
p_image - The image to base this Document on.clearLetters()public java.awt.image.BufferedImage getImage()
setImage(BufferedImage)public Letter[] getLetters()
Letterpublic void addLetter(Letter p_letter)
p_letter - The letter to add to the Documentpublic void clearLetters()
OCRManager