org.yccheok.numrecognition
Class NumberImageChainCodeFeature

java.lang.Object
  extended by org.yccheok.numrecognition.NumberImageChainCodeFeature
All Implemented Interfaces:
NumberImageFeature

public class NumberImageChainCodeFeature
extends java.lang.Object
implements NumberImageFeature

The NumberImageChainCodeFeature class is the chain code feature for a given number image.


Field Summary
private  FeatureParameter featureParameter
          The feature parameter.
private  NumberImageProcessor numberImageProcessor
          Number image object.
 
Constructor Summary
NumberImageChainCodeFeature(NumberImageProcessor numberImageProcessor, FeatureParameter featureParameter)
          Creates a new instance of NumberImageChainCodeFeature of a number image and the parameter setting for the particular feature.
NumberImageChainCodeFeature(java.lang.String fileName, FeatureParameter featureParameter)
          Creates a new instance of NumberImageChainCodeFeature of an image file and the parameter setting for the particular feature.
 
Method Summary
 double[] getFeatures()
          Returns the feature of the number image.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

numberImageProcessor

private NumberImageProcessor numberImageProcessor
Number image object.


featureParameter

private FeatureParameter featureParameter
The feature parameter.

Constructor Detail

NumberImageChainCodeFeature

public NumberImageChainCodeFeature(NumberImageProcessor numberImageProcessor,
                                   FeatureParameter featureParameter)
Creates a new instance of NumberImageChainCodeFeature of a number image and the parameter setting for the particular feature.

Parameters:
numberImageProcessor - The number image which the feature will be generated based on it.
featureParameter - The feature parameter which will be used during feature generating.

NumberImageChainCodeFeature

public NumberImageChainCodeFeature(java.lang.String fileName,
                                   FeatureParameter featureParameter)
Creates a new instance of NumberImageChainCodeFeature of an image file and the parameter setting for the particular feature.

Parameters:
fileName - The name of the image file.
featureParameter - The feature parameter which will be used during feature generating.
Method Detail

getFeatures

public double[] getFeatures()
Returns the feature of the number image.

Specified by:
getFeatures in interface NumberImageFeature
Returns:
Feature of the number image.