org.yccheok.numrecognition
Class NumberImageLRTBHVFeatureFactory

java.lang.Object
  extended by org.yccheok.numrecognition.NumberImageLRTBHVFeatureFactory
All Implemented Interfaces:
NumberImageFeatureFactory

public class NumberImageLRTBHVFeatureFactory
extends java.lang.Object
implements NumberImageFeatureFactory

The NumberImageLRTBHVFeatureFeature class is desgined by using factory creation pattern. This is the concrete class of NumberImageFeatureFactory. It acts as a factory creation of left, right, top, bottom profile and horizontal, vertical projection feature.


Constructor Summary
NumberImageLRTBHVFeatureFactory()
          Creates a new instance of NumberImageLRTBHVFeatureFactory
 
Method Summary
 NumberImageFeature makeFeature(NumberImageProcessor numberImageProcessor, FeatureParameter featureParameter)
          Constructs a LRTBHV feature by taking in number image with specified feature parameter.
 NumberImageFeature makeFeature(java.lang.String fileName, FeatureParameter featureParameter)
          Constructs a LRTBHV feature by taking in image from an image file with specified feature parameter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NumberImageLRTBHVFeatureFactory

public NumberImageLRTBHVFeatureFactory()
Creates a new instance of NumberImageLRTBHVFeatureFactory

Method Detail

makeFeature

public NumberImageFeature makeFeature(java.lang.String fileName,
                                      FeatureParameter featureParameter)
Constructs a LRTBHV feature by taking in image from an image file with specified feature parameter.

Specified by:
makeFeature in interface NumberImageFeatureFactory
Parameters:
fileName - The name of the image file.
featureParameter - The feature parameter to generate a feature.
Returns:
LRTBHV feature object.

makeFeature

public NumberImageFeature makeFeature(NumberImageProcessor numberImageProcessor,
                                      FeatureParameter featureParameter)
Constructs a LRTBHV feature by taking in number image with specified feature parameter.

Specified by:
makeFeature in interface NumberImageFeatureFactory
Parameters:
numberImageProcessor - The number image object which the feature will be generated.
featureParameter - The feature parameter to generate a feature.
Returns:
LRTBHV feature object.