org.yccheok.numrecognition
Class NumberImageChainCodeFeatureFactory

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

public class NumberImageChainCodeFeatureFactory
extends java.lang.Object
implements NumberImageFeatureFactory

The NumberImageChainCodeFeatureFeature class is desgined by using factory creation pattern. This is the concrete class of NumberImageFeatureFactory. It acts as a factory creation of chain code feature.


Constructor Summary
NumberImageChainCodeFeatureFactory()
          Creates a new instance of NumberImageChainCodeFeatureFactory
 
Method Summary
 NumberImageFeature makeFeature(NumberImageProcessor numberImageProcessor, FeatureParameter featureParameter)
          Constructs a chain code feature by taking in number image with specified feature parameter.
 NumberImageFeature makeFeature(java.lang.String fileName, FeatureParameter featureParameter)
          Constructs a chain code 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

NumberImageChainCodeFeatureFactory

public NumberImageChainCodeFeatureFactory()
Creates a new instance of NumberImageChainCodeFeatureFactory

Method Detail

makeFeature

public NumberImageFeature makeFeature(java.lang.String fileName,
                                      FeatureParameter featureParameter)
Constructs a chain code 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:
chain code feature object.

makeFeature

public NumberImageFeature makeFeature(NumberImageProcessor numberImageProcessor,
                                      FeatureParameter featureParameter)
Constructs a chain code 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:
Chain code feature object.