Package boofcv.abst.feature.associate
Class AssociateDescTo2D<D>
java.lang.Object
boofcv.abst.feature.associate.AssociateDescTo2D<D>
- All Implemented Interfaces:
Associate<D>,AssociateDescription2D<D>
Wrapper around
AssociateDescription that allows it to be used inside of AssociateDescription2D-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidFinds 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.voidinitialize(int imageWidth, int imageHeight) Initialize by specifying the image width/height.voidsetDestination(FastAccess<Point2D_F64> location, FastAccess<D> descriptions) Provide the location and descriptions for destination features.voidsetMaxScoreThreshold(double score) Associations are only considered if their score is less than or equal to the specified threshold.voidsetSource(FastAccess<Point2D_F64> location, FastAccess<D> descriptions) Provide the location and descriptions for source features.booleanIf at most one match is returned for each destination feature.booleanIf at most one match is returned for each source feature.
-
Constructor Details
-
AssociateDescTo2D
-
-
Method Details
-
initialize
public void initialize(int imageWidth, int imageHeight) Description copied from interface:AssociateDescription2DInitialize by specifying the image width/height. Used to precompute internal data structures and set thresholds. If images are different sizes just use the largest width/height- Specified by:
initializein interfaceAssociateDescription2D<D>- Parameters:
imageWidth- Input image widthimageHeight- Input image height
-
setSource
Description copied from interface:AssociateDescription2DProvide the location and descriptions for source features.- Specified by:
setSourcein interfaceAssociateDescription2D<D>- Parameters:
location- Feature locations.descriptions- Feature descriptions.
-
setDestination
Description copied from interface:AssociateDescription2DProvide the location and descriptions for destination features.- Specified by:
setDestinationin interfaceAssociateDescription2D<D>- Parameters:
location- Feature locations.descriptions- Feature descriptions.
-
associate
public void associate()Description copied from interface:AssociateFinds the best match for each item in the source list with an item in the destination list. -
getMatches
Description copied from interface:AssociateList of associated features. Indexes refer to the index inside the input lists.- Specified by:
getMatchesin interfaceAssociate<D>- 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<D>- 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<D>- 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<D>- Parameters:
score- The threshold.
-
getScoreType
Description copied from interface:AssociateSpecifies the type of score which is returned.- Specified by:
getScoreTypein interfaceAssociate<D>- 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<D>- 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<D>- Returns:
- true for unique destination association
-
getDescriptionType
Description copied from interface:AssociateReturns the type of object it can associate- Specified by:
getDescriptionTypein interfaceAssociate<D>
-