Package boofcv.abst.feature.associate
Class WrapAssociateGreedy<T>
java.lang.Object
boofcv.abst.feature.associate.WrapAssociateGreedy<T>
- All Implemented Interfaces:
Associate<T>
,AssociateDescription<T>
Wrapper around algorithms contained inside of
AssociateGreedyDesc
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Finds the best match for each item in the source list with an item in the destination list.Returns the type of object it can associateList of associated features.Specifies the type of score which is returned.Indexes of features in the destination set which are not associated.Indexes of features in the source set which are not associated.void
setDestination
(FastAccess<T> listDst) Sets the list of destination features NOTE: A reference to the input list might be saved internally until the next call to this function.void
setMaxScoreThreshold
(double score) Associations are only considered if their score is less than or equal to the specified threshold.void
setSource
(FastAccess<T> listSrc) Sets the list of source features.boolean
If at most one match is returned for each destination feature.boolean
If at most one match is returned for each source feature.
-
Constructor Details
-
WrapAssociateGreedy
-
-
Method Details
-
setSource
Description copied from interface:AssociateDescription
Sets the list of source features. NOTE: A reference to the input list might be saved internally until the next call to this function.- Specified by:
setSource
in interfaceAssociateDescription<T>
- Parameters:
listSrc
- List of features
-
setDestination
Description copied from interface:AssociateDescription
Sets the list of destination features NOTE: A reference to the input list might be saved internally until the next call to this function.- Specified by:
setDestination
in interfaceAssociateDescription<T>
- Parameters:
listDst
- List of features
-
getMatches
Description copied from interface:Associate
List of associated features. Indexes refer to the index inside the input lists.- Specified by:
getMatches
in interfaceAssociate<T>
- Returns:
- List of associated features.
-
associate
public void associate()Description copied from interface:Associate
Finds the best match for each item in the source list with an item in the destination list. -
getUnassociatedSource
Description copied from interface:Associate
Indexes of features in the source set which are not associated. WARNING: In some implementations the unassociated list is recomputed each time this function is invoked. In other implementations it was found virtually for free while the matches are found.- Specified by:
getUnassociatedSource
in interfaceAssociate<T>
- Returns:
- List of unassociated source features by index.
-
getUnassociatedDestination
Description copied from interface:Associate
Indexes of features in the destination set which are not associated. WARNING: In some implementations the unassociated list is recomputed each time this function is invoked. In other implementations it was found virtually for free while the matches are found.- Specified by:
getUnassociatedDestination
in interfaceAssociate<T>
- Returns:
- List of unassociated destination features by index.
-
setMaxScoreThreshold
public void setMaxScoreThreshold(double score) Description copied from interface:Associate
Associations are only considered if their score is less than or equal to the specified threshold. To remove any threshold test set this value to Double.MAX_VALUE- Specified by:
setMaxScoreThreshold
in interfaceAssociate<T>
- Parameters:
score
- The threshold.
-
getScoreType
Description copied from interface:Associate
Specifies the type of score which is returned.- Specified by:
getScoreType
in interfaceAssociate<T>
- Returns:
- Type of association score.
-
uniqueSource
public boolean uniqueSource()Description copied from interface:Associate
If at most one match is returned for each source feature.- Specified by:
uniqueSource
in interfaceAssociate<T>
- Returns:
- true for unique source association
-
uniqueDestination
public boolean uniqueDestination()Description copied from interface:Associate
If at most one match is returned for each destination feature.- Specified by:
uniqueDestination
in interfaceAssociate<T>
- Returns:
- true for unique destination association
-
getDescriptionType
Description copied from interface:Associate
Returns the type of object it can associate- Specified by:
getDescriptionType
in interfaceAssociate<T>
-