Enum Class TemplateScoreType

java.lang.Object
java.lang.Enum<TemplateScoreType>
boofcv.factory.template.TemplateScoreType
All Implemented Interfaces:
Serializable, Comparable<TemplateScoreType>, java.lang.constant.Constable

public enum TemplateScoreType extends Enum<TemplateScoreType>
List of formulas used to score matches in a template.
  • Enum Constant Details

    • SUM_ABSOLUTE_DIFFERENCE

      public static final TemplateScoreType 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

      public static final TemplateScoreType 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

      public static final TemplateScoreType NCC

      Normalized Cross Correlation (NCC) error metric. Adds invariance to lighting conditions but is more expensive to compute.

      See Also:
    • CORRELATION

      public static final TemplateScoreType CORRELATION

      Correlation error metric. On large images this can be much faster than the other techniques.

      See Also:
    • SQUARED_DIFFERENCE_NORMED

      public static final TemplateScoreType SQUARED_DIFFERENCE_NORMED
      Squared Difference normed error
      See Also:
  • Method Details

    • values

      public static TemplateScoreType[] 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

      public static TemplateScoreType valueOf(String name)
      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 name
      NullPointerException - if the argument is null