Package boofcv.alg.feature.associate
Class AssociateUniqueByScoreAlg
java.lang.Object
boofcv.alg.feature.associate.AssociateUniqueByScoreAlg
If multiple associations are found for a single source and/or destination feature then this ambiguity is
removed by selecting the association with the best score. If there are multiple best scores for a single
feature index then there are no associations for that feature.
-
Constructor Summary
ConstructorDescriptionAssociateUniqueByScoreAlg
(MatchScoreType type, boolean checkSource, boolean checkDestination) Configures algorithm. -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
void
process
(FastAccess<AssociatedIndex> matches, int numSource, int numDestination) Given a set of matches, enforce the uniqueness rules it was configured to.
-
Constructor Details
-
AssociateUniqueByScoreAlg
public AssociateUniqueByScoreAlg(MatchScoreType type, boolean checkSource, boolean checkDestination) Configures algorithm.- Parameters:
type
- Used to determine which score is bettercheckSource
- Should it check source features for uniquenesscheckDestination
- Should it check destination features for uniqueness
-
-
Method Details
-
process
Given a set of matches, enforce the uniqueness rules it was configured to.- Parameters:
matches
- Set of matching featuresnumSource
- Number of source featuresnumDestination
- Number of destination features
-
getMatches
-
checkSource
public boolean checkSource() -
checkDestination
public boolean checkDestination()
-