org.yccheok.numrecognition
Class NumberImageLRTBHVFeature

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

public class NumberImageLRTBHVFeature
extends java.lang.Object
implements NumberImageFeature

The NumberImageLRTBHVFeature class is the right, top, bottom profile and horizontal, vertical projection feature for a given number image.


Field Summary
private  FeatureParameter featureParameter
          The feature parameter.
private  NumberImageProcessor numberImageProcessor
          Number image object.
 
Constructor Summary
NumberImageLRTBHVFeature(NumberImageProcessor numberImageProcessor, FeatureParameter featureParameter)
          Creates a new instance of NumberImageLRTBHVFeature of a number image and the parameter setting for the particular feature.
NumberImageLRTBHVFeature(java.lang.String fileName, FeatureParameter featureParameter)
          Creates a new instance of NumberImageLRTBHVFeature 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

NumberImageLRTBHVFeature

public NumberImageLRTBHVFeature(NumberImageProcessor numberImageProcessor,
                                FeatureParameter featureParameter)
Creates a new instance of NumberImageLRTBHVFeature 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.

NumberImageLRTBHVFeature

public NumberImageLRTBHVFeature(java.lang.String fileName,
                                FeatureParameter featureParameter)
Creates a new instance of NumberImageLRTBHVFeature 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.