Package boofcv.factory.template
Enum Class TemplateScoreType
- All Implemented Interfaces:
Serializable
,Comparable<TemplateScoreType>
,java.lang.constant.Constable
List of formulas used to score matches in a template.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionCorrelation error metric.Normalized Cross Correlation (NCC) error metric.Squared Difference normed errorSum of the absolute difference error.Sum of the difference squared or Euclidean error squared. -
Method Summary
Modifier and TypeMethodDescriptionstatic TemplateScoreType
Returns the enum constant of this class with the specified name.static TemplateScoreType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SUM_ABSOLUTE_DIFFERENCE
Sum of the absolute difference error.
error = Sum(o,u) | I(x,y) - T(x-o,y-u) |
- See Also:
-
SUM_SQUARE_ERROR
Sum of the difference squared or Euclidean error squared.
error = Sum(o,u) [ I(x,y) - T(x-o,y-u) ]^2
- See Also:
-
NCC
Normalized Cross Correlation (NCC) error metric. Adds invariance to lighting conditions but is more expensive to compute.
- See Also:
-
CORRELATION
Correlation error metric. On large images this can be much faster than the other techniques.
- See Also:
-
SQUARED_DIFFERENCE_NORMED
Squared Difference normed error- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-