net.sourceforge.javaocr.plugin.cluster
Class CompositeExtractor

java.lang.Object
  extended by net.sourceforge.javaocr.plugin.cluster.CompositeExtractor
All Implemented Interfaces:
FeatureExtractor

public class CompositeExtractor
extends Object
implements FeatureExtractor

composite feature extractor - combines several extractors into one

Author:
Konstantin Pribluda

Field Summary
(package private)  FeatureExtractor[] extractors
           
(package private)  int size
           
 
Constructor Summary
CompositeExtractor(FeatureExtractor... extractors)
           
 
Method Summary
 double[] extract(Image image)
          delegate feature extraction from multiple backend extractors
 int getSize()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

size

int size

extractors

FeatureExtractor[] extractors
Constructor Detail

CompositeExtractor

public CompositeExtractor(FeatureExtractor... extractors)
Method Detail

getSize

public int getSize()
Specified by:
getSize in interface FeatureExtractor

extract

public double[] extract(Image image)
delegate feature extraction from multiple backend extractors

Specified by:
extract in interface FeatureExtractor
Parameters:
image - image to process
Returns:
combined feature vector


Copyright © -2012. All Rights Reserved.