Package boofcv.abst.feature.associate
Class AssociateDescriptionHashSets<Desc>
java.lang.Object
boofcv.abst.feature.associate.BaseAssociateSets<Desc>
boofcv.abst.feature.associate.BaseAssociateDescriptionSets<Desc>
boofcv.abst.feature.associate.AssociateDescriptionHashSets<Desc>
- All Implemented Interfaces:
Associate<Desc>
Feature set aware association algorithm for use when there is a large sparse set of unique set ID's. Internally
a HashMap is used to look up the set ID's to the actual set. Internally it has an array 'sets' which stores
the actual data for each set. The set index does not correspond to the set ID, you need to use the map to
go from set ID to set index.
-
Nested Class Summary
Nested classes/interfaces inherited from class boofcv.abst.feature.associate.BaseAssociateSets
BaseAssociateSets.SetStruct
-
Field Summary
Modifier and TypeFieldDescriptionboolean
If true then source features can create new sets.boolean
If true then source features can create new sets.final DogArray_I32
final DogArray_I32
Fields inherited from class boofcv.abst.feature.associate.BaseAssociateSets
countDst, countSrc, matches, sets, unassociatedDst, unassociatedSrc
-
Constructor Summary
ConstructorDescriptionAssociateDescriptionHashSets
(AssociateDescription<Desc> associator) Provides the association algorithm and the descriptor type -
Method Summary
Modifier and TypeMethodDescriptionvoid
addDestination
(Desc description, int set) Adds a new descriptor and its set to the list.void
Adds a new descriptor and its set to the list.void
Associates each set of features independently then puts them back into a single list for outputvoid
Removes all data for the destination descriptors.void
Removes all data for the source descriptors.void
initialize
(int numberOfSets) Override the default behavior which assumes there's a one-to-one match between index and set IDMethods inherited from class boofcv.abst.feature.associate.BaseAssociateSets
getDescriptionType, getMatches, getScoreType, getUnassociatedDestination, getUnassociatedSource, newSetStruct, saveSetAssociateResults, setMaxScoreThreshold, uniqueDestination, uniqueSource
-
Field Details
-
createNewSetsFromSource
public boolean createNewSetsFromSourceIf true then source features can create new sets. -
createNewSetsFromDestination
public boolean createNewSetsFromDestinationIf true then source features can create new sets. -
setsAddedBySrc
-
setsAddedByDst
-
-
Constructor Details
-
AssociateDescriptionHashSets
Provides the association algorithm and the descriptor type- Parameters:
associator
- Association algorithm
-
-
Method Details
-
initialize
public void initialize(int numberOfSets) Override the default behavior which assumes there's a one-to-one match between index and set ID- Specified by:
initialize
in classBaseAssociateDescriptionSets<Desc>
-
addSource
Adds a new descriptor and its set to the list. The order that descriptors are added is important and saved.- Specified by:
addSource
in classBaseAssociateDescriptionSets<Desc>
- Parameters:
description
- The feature's description. This reference is saved internally.set
- The set the feature belongs to.
-
addDestination
Adds a new descriptor and its set to the list. The order that descriptors are added is important and saved.- Specified by:
addDestination
in classBaseAssociateDescriptionSets<Desc>
- Parameters:
description
- The feature's description. This reference is saved internally.set
- The set the feature belongs to.
-
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>
-
associate
public void associate()Associates each set of features independently then puts them back into a single list for output
-