public enum TemplateScoreType extends java.lang.Enum<TemplateScoreType>
| Enum Constant and Description |
|---|
CORRELATION
Correlation error metric.
|
NCC
Normalized Cross Correlation (NCC) error metric.
|
SUM_DIFF_SQ
Sum of the difference squared or Euclidean error squared.
|
| Modifier and Type | Method and Description |
|---|---|
static TemplateScoreType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TemplateScoreType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TemplateScoreType SUM_DIFF_SQ
Sum of the difference squared or Euclidean error squared.
error = Sum(o,u) [ I(x,y) - T(x-o,y-u) ]^2
TemplateDiffSquaredpublic static final TemplateScoreType NCC
Normalized Cross Correlation (NCC) error metric. Adds invariance to lighting conditions but is more expensive to compute.
TemplateNCCpublic static final TemplateScoreType CORRELATION
Correlation error metric. On large images this can be much faster than the other techniques.
TemplateCorrelationFFTpublic static TemplateScoreType[] values()
for (TemplateScoreType c : TemplateScoreType.values()) System.out.println(c);
public static TemplateScoreType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null