Package boofcv.alg.feature.associate
Class AssociateThreeByPairs<TD extends TupleDesc<TD>>
java.lang.Object
boofcv.alg.feature.associate.AssociateThreeByPairs<TD>
- All Implemented Interfaces:
AssociateThreeDescription<TD>
public class AssociateThreeByPairs<TD extends TupleDesc<TD>>
extends Object
implements AssociateThreeDescription<TD>
Associates features in three view with each other by associating each pair of images individually. Only unique
associations are allowed.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AssociateDescriptionArraySets<TD>protected FastAccess<TD>protected FastAccess<TD>protected FastAccess<TD>protected DogArray<AssociatedTripleIndex>protected DogArray_I32protected DogArray_I32protected DogArray_I32protected DogArray_I32protected DogArray_I32protected DogArray_I32 -
Constructor Summary
ConstructorsConstructorDescriptionAssociateThreeByPairs(AssociateDescription<TD> associator) Specifies which algorithms to use internally -
Method Summary
Modifier and TypeMethodDescriptionvoidFinds the best match for each item in the source list with an item in the destination list.List of associated features.Specifies the type of score which is returned.voidinitialize(int numberOfSets) Must call first.booleanIf true then each feature is associated at most one timevoidsetFeaturesA(FastAccess<TD> features, DogArray_I32 sets) Specify descriptors in image AvoidsetFeaturesB(FastAccess<TD> features, DogArray_I32 sets) Specify descriptors in image CvoidsetFeaturesC(FastAccess<TD> features, DogArray_I32 sets) Specify descriptors in image BvoidsetMaxScoreThreshold(double score) Associations are only considered if their score is less than or equal to the specified threshold.
-
Field Details
-
associator
-
featuresA
-
featuresB
-
featuresC
-
setsA
-
setsB
-
setsC
-
tmpB
-
tmpA
-
tmpSetsA
-
tmpSetsB
-
matches
-
srcToC
-
-
Constructor Details
-
AssociateThreeByPairs
Specifies which algorithms to use internally- Parameters:
associator- image to image association
-
-
Method Details
-
initialize
public void initialize(int numberOfSets) Description copied from interface:AssociateThreeDescriptionMust call first. It specifies the number of sets feature descriptors can belong inside of- Specified by:
initializein interfaceAssociateThreeDescription<TD extends TupleDesc<TD>>
-
setFeaturesA
Description copied from interface:AssociateThreeDescriptionSpecify descriptors in image A- Specified by:
setFeaturesAin interfaceAssociateThreeDescription<TD extends TupleDesc<TD>>- Parameters:
features- (Input) feature descriptors. Reference is saved.sets- (Input) Which sets the features belong to. Reference is saved.
-
setFeaturesB
Description copied from interface:AssociateThreeDescriptionSpecify descriptors in image C- Specified by:
setFeaturesBin interfaceAssociateThreeDescription<TD extends TupleDesc<TD>>- Parameters:
features- feature descriptors. Reference is saved.sets- (Input) Which sets the features belong to. Reference is saved.
-
setFeaturesC
Description copied from interface:AssociateThreeDescriptionSpecify descriptors in image B- Specified by:
setFeaturesCin interfaceAssociateThreeDescription<TD extends TupleDesc<TD>>- Parameters:
features- feature descriptors. Reference is saved.sets- (Input) Which sets the features belong to. Reference is saved.
-
associate
public void associate()Description copied from interface:AssociateThreeDescriptionFinds the best match for each item in the source list with an item in the destination list.- Specified by:
associatein interfaceAssociateThreeDescription<TD extends TupleDesc<TD>>
-
getMatches
Description copied from interface:AssociateThreeDescriptionList of associated features. Indexes refer to the index inside the input lists.- Specified by:
getMatchesin interfaceAssociateThreeDescription<TD extends TupleDesc<TD>>- Returns:
- List of associated features.
-
setMaxScoreThreshold
public void setMaxScoreThreshold(double score) Description copied from interface:AssociateThreeDescriptionAssociations 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 interfaceAssociateThreeDescription<TD extends TupleDesc<TD>>- Parameters:
score- The threshold.
-
getScoreType
Description copied from interface:AssociateThreeDescriptionSpecifies the type of score which is returned.- Specified by:
getScoreTypein interfaceAssociateThreeDescription<TD extends TupleDesc<TD>>- Returns:
- Type of association score.
-
isEachFeatureAssociatedOnlyOnce
public boolean isEachFeatureAssociatedOnlyOnce()Description copied from interface:AssociateThreeDescriptionIf true then each feature is associated at most one time- Specified by:
isEachFeatureAssociatedOnlyOncein interfaceAssociateThreeDescription<TD extends TupleDesc<TD>>
-