Package boofcv.abst.feature.associate
Class AssociateDescriptionSets2D<Desc>
java.lang.Object
boofcv.abst.feature.associate.BaseAssociateSets<Desc>
boofcv.abst.feature.associate.AssociateDescriptionSets2D<Desc>
- All Implemented Interfaces:
Associate<Desc>
Feature set aware association algorithm that takes in account image location. It works by breaking sorting
descriptors into their sets and then
performing association independently. The matches are then combined together again into a single list.
-
Nested Class Summary
Nested classes/interfaces inherited from class boofcv.abst.feature.associate.BaseAssociateSets
BaseAssociateSets.SetStruct
-
Field Summary
Fields inherited from class boofcv.abst.feature.associate.BaseAssociateSets
countDst, countSrc, matches, sets, unassociatedDst, unassociatedSrc
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addDestination
(Desc description, double pixelX, double pixelY, int set) Adds a new descriptor and its set to the list.void
Adds a new descriptor and its set to the list.void
Finds the best match for each item in the source list with an item in the destination list.void
Removes all data for the destination descriptors.void
Removes all data for the source descriptors.void
initializeAssociator
(int imageWidth, int imageHeight) Initializes association.void
initializeSets
(int numberOfSets) Override the default behavior which assumes there's a one-to-one match between index and set IDprotected BaseAssociateSets<Desc>.SetStruct
Methods inherited from class boofcv.abst.feature.associate.BaseAssociateSets
getDescriptionType, getMatches, getScoreType, getUnassociatedDestination, getUnassociatedSource, saveSetAssociateResults, setMaxScoreThreshold, uniqueDestination, uniqueSource
-
Constructor Details
-
AssociateDescriptionSets2D
-
-
Method Details
-
initializeAssociator
public void initializeAssociator(int imageWidth, int imageHeight) Initializes association. -
initializeSets
public void initializeSets(int numberOfSets) Override the default behavior which assumes there's a one-to-one match between index and set ID -
newSetStruct
- Overrides:
newSetStruct
in classBaseAssociateSets<Desc>
-
clearSource
public void clearSource()Description copied from class:BaseAssociateSets
Removes all data for the source descriptors.- Overrides:
clearSource
in classBaseAssociateSets<Desc>
-
clearDestination
public void clearDestination()Description copied from class:BaseAssociateSets
Removes all data for the destination descriptors.- Overrides:
clearDestination
in classBaseAssociateSets<Desc>
-
addSource
Adds a new descriptor and its set to the list. The order that descriptors are added is important and saved. -
addDestination
Adds a new descriptor and its set to the list. The order that descriptors are added is important and saved. -
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.
-