Package boofcv.abst.feature.associate
Class BaseAssociateSets<Desc>
java.lang.Object
boofcv.abst.feature.associate.BaseAssociateSets<Desc>
- All Implemented Interfaces:
Associate<Desc>
- Direct Known Subclasses:
AssociateDescriptionSets2D,BaseAssociateDescriptionSets
Base class for set aware feature association
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classStores data specific to a feature set -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected intprotected final DogArray<AssociatedIndex>protected final DogArray<BaseAssociateSets<Desc>.SetStruct>protected final DogArray_I32protected final DogArray_I32 -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBaseAssociateSets(Associate<Desc> associator) Specifies the type of descriptor -
Method Summary
Modifier and TypeMethodDescriptionvoidRemoves all data for the destination descriptors.voidRemoves all data for the source descriptors.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.protected BaseAssociateSets<Desc>.SetStructprotected voidAfter associating a set run association these processes and saves the resultsvoidsetMaxScoreThreshold(double score) Associations are only considered if their score is less than or equal to the specified threshold.booleanIf at most one match is returned for each destination feature.booleanIf at most one match is returned for each source feature.
-
Field Details
-
sets
-
countSrc
protected int countSrc -
countDst
protected int countDst -
matches
-
unassociatedSrc
-
unassociatedDst
-
-
Constructor Details
-
BaseAssociateSets
Specifies the type of descriptor
-
-
Method Details
-
newSetStruct
-
clearSource
public void clearSource()Removes all data for the source descriptors. -
clearDestination
public void clearDestination()Removes all data for the destination descriptors. -
saveSetAssociateResults
After associating a set run association these processes and saves the results -
getMatches
Description copied from interface:AssociateList of associated features. Indexes refer to the index inside the input lists.- Specified by:
getMatchesin interfaceAssociate<Desc>- Returns:
- List of associated features.
-
getUnassociatedSource
Description copied from interface:AssociateIndexes 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:
getUnassociatedSourcein interfaceAssociate<Desc>- Returns:
- List of unassociated source features by index.
-
getUnassociatedDestination
Description copied from interface:AssociateIndexes 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:
getUnassociatedDestinationin interfaceAssociate<Desc>- Returns:
- List of unassociated destination features by index.
-
setMaxScoreThreshold
public void setMaxScoreThreshold(double score) Description copied from interface:AssociateAssociations 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:
setMaxScoreThresholdin interfaceAssociate<Desc>- Parameters:
score- The threshold.
-
getScoreType
Description copied from interface:AssociateSpecifies the type of score which is returned.- Specified by:
getScoreTypein interfaceAssociate<Desc>- Returns:
- Type of association score.
-
uniqueSource
public boolean uniqueSource()Description copied from interface:AssociateIf at most one match is returned for each source feature.- Specified by:
uniqueSourcein interfaceAssociate<Desc>- Returns:
- true for unique source association
-
uniqueDestination
public boolean uniqueDestination()Description copied from interface:AssociateIf at most one match is returned for each destination feature.- Specified by:
uniqueDestinationin interfaceAssociate<Desc>- Returns:
- true for unique destination association
-
getDescriptionType
Description copied from interface:AssociateReturns the type of object it can associate- Specified by:
getDescriptionTypein interfaceAssociate<Desc>
-