org.yccheok.numrecognition
Class NumberCategory

java.lang.Object
  extended by org.yccheok.numrecognition.NumberCategory

public class NumberCategory
extends java.lang.Object

The NumberCategory class represents a number image with specified category.


Field Summary
private  Category category
          Category of the number image.
private  NumberImageProcessor numberImageProcessor
          Number image object.
 
Constructor Summary
NumberCategory(NumberImageProcessor numberImageProcessor, Category category)
          Creates a new instance of NumberCategory with a specified number image and the category it belongs to.
 
Method Summary
 Category getCategory()
          Returns the category of this number image.
 NumberImageProcessor getNumberImageProcessor()
          Returns number image of this category.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

numberImageProcessor

private final NumberImageProcessor numberImageProcessor
Number image object.


category

private final Category category
Category of the number image.

Constructor Detail

NumberCategory

public NumberCategory(NumberImageProcessor numberImageProcessor,
                      Category category)
Creates a new instance of NumberCategory with a specified number image and the category it belongs to.

Parameters:
numberImageProcessor - The number image object.
category - The category which this number image object belongs to.
Method Detail

getNumberImageProcessor

public NumberImageProcessor getNumberImageProcessor()
Returns number image of this category.

Returns:
Number image of this category.

getCategory

public Category getCategory()
Returns the category of this number image.

Returns:
The category of this number image.