net.sourceforge.javaocr.matcher
Class MetricMatcher
java.lang.Object
net.sourceforge.javaocr.matcher.MetricMatcher
public class MetricMatcher
- extends Object
classifies supplied features
- Author:
- Konstantin Pribluda
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
metrics
Map<Metric,Character> metrics
yellow
Map<Metric,Double> yellow
red
Map<Metric,Double> red
MetricMatcher
public MetricMatcher()
addMetric
public void addMetric(Metric metric,
Character character,
double yellow,
double red)
- register metric for character with statistical parameters
- Parameters:
metric - character - yellow - red -
classify
public List<Match> classify(double[] features)
getMetrics
public Map<Metric,Character> getMetrics()
getRed
public Map<Metric,Double> getRed()
getYellow
public Map<Metric,Double> getYellow()
containers
public List<MetricContainer> containers()
setContainers
public void setContainers(Collection<? extends MetricContainer> containers)
Copyright © -2012. All Rights Reserved.