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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDestination(Desc description, double pixelX, double pixelY, int set) Adds a new descriptor and its set to the list.voidAdds a new descriptor and its set to the list.voidFinds the best match for each item in the source list with an item in the destination list.voidRemoves all data for the destination descriptors.voidRemoves all data for the source descriptors.voidinitializeAssociator(int imageWidth, int imageHeight) Initializes association.voidinitializeSets(int numberOfSets) Override the default behavior which assumes there's a one-to-one match between index and set IDprotected BaseAssociateSets<Desc>.SetStructMethods 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:
newSetStructin classBaseAssociateSets<Desc>
-
clearSource
public void clearSource()Description copied from class:BaseAssociateSetsRemoves all data for the source descriptors.- Overrides:
clearSourcein classBaseAssociateSets<Desc>
-
clearDestination
public void clearDestination()Description copied from class:BaseAssociateSetsRemoves all data for the destination descriptors.- Overrides:
clearDestinationin 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:AssociateFinds the best match for each item in the source list with an item in the destination list.
-