Package boofcv.struct.feature
Class MatchScoreType
java.lang.Object
boofcv.struct.feature.MatchScoreType
Specifies the meaning of a match score.
-
Field Summary
Modifier and TypeFieldDescriptionstatic MatchScoreType
Correlation scores can be both positive and negative values.static MatchScoreType
These error metrics have values greater than or equal to zero. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract int
compareTo
(double scoreA, double scoreB) Used to test to see which score is better than another score.abstract boolean
True if the best possible score has a value of zero
-
Field Details
-
CORRELATION
Correlation scores can be both positive and negative values. Scores with a larger positive value are considered to be better. -
NORM_ERROR
These error metrics have values greater than or equal to zero. Closer the error is to zero the better the match is considered.
-
-
Constructor Details
-
MatchScoreType
public MatchScoreType()
-
-
Method Details
-
isZeroBest
public abstract boolean isZeroBest()True if the best possible score has a value of zero- Returns:
- True if the best possible score has a value of zero
-
compareTo
public abstract int compareTo(double scoreA, double scoreB) Used to test to see which score is better than another score.
1 if scoreA better than scoreB
0 if scoreA == scoreB
-1 if scoreA worse than scoreB
- Parameters:
scoreA
- match scorescoreB
- match score- Returns:
- Returns a value of (-1,0,1) which indicates which score is better.
-