org.yccheok.numrecognition
Interface NumberImageFeatureFactory

All Known Implementing Classes:
NumberImageChainCodeFeatureFactory, NumberImageLRTBHVFeatureFactory

public interface NumberImageFeatureFactory

The NumberImageFeatureFactory class is desgined by using factory creation pattern. This enable client to construct and instantiate a set of related features without specifying their concrete objects.


Method Summary
 NumberImageFeature makeFeature(NumberImageProcessor numberImageProcessor, FeatureParameter featureParameter)
          Constructs a feature by taking in number image with specified feature parameter.
 NumberImageFeature makeFeature(java.lang.String fileName, FeatureParameter featureParameter)
          Constructs a feature by taking in image from an image file with specified feature parameter.
 

Method Detail

makeFeature

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

Parameters:
fileName - The name of the image file.
featureParameter - The feature parameter to generate a feature.
Returns:
Feature object.

makeFeature

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

Parameters:
numberImageProcessor - The number image object which the feature will be generated.
featureParameter - The feature parameter to generate a feature.
Returns:
Feature object