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
Modifier and TypeFieldDescriptionprotected AssociateDescriptionArraySets<TD>
protected FastAccess<TD>
protected FastAccess<TD>
protected FastAccess<TD>
protected DogArray<AssociatedTripleIndex>
protected DogArray_I32
protected DogArray_I32
protected DogArray_I32
protected DogArray_I32
protected DogArray_I32
protected DogArray_I32
-
Constructor Summary
ConstructorDescriptionAssociateThreeByPairs
(AssociateDescription<TD> associator) Specifies which algorithms to use internally -
Method Summary
Modifier and TypeMethodDescriptionvoid
Finds 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.void
initialize
(int numberOfSets) Must call first.boolean
If true then each feature is associated at most one timevoid
setFeaturesA
(FastAccess<TD> features, DogArray_I32 sets) Specify descriptors in image Avoid
setFeaturesB
(FastAccess<TD> features, DogArray_I32 sets) Specify descriptors in image Cvoid
setFeaturesC
(FastAccess<TD> features, DogArray_I32 sets) Specify descriptors in image Bvoid
setMaxScoreThreshold
(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:AssociateThreeDescription
Must call first. It specifies the number of sets feature descriptors can belong inside of- Specified by:
initialize
in interfaceAssociateThreeDescription<TD extends TupleDesc<TD>>
-
setFeaturesA
Description copied from interface:AssociateThreeDescription
Specify descriptors in image A- Specified by:
setFeaturesA
in 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:AssociateThreeDescription
Specify descriptors in image C- Specified by:
setFeaturesB
in 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:AssociateThreeDescription
Specify descriptors in image B- Specified by:
setFeaturesC
in 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:AssociateThreeDescription
Finds the best match for each item in the source list with an item in the destination list.- Specified by:
associate
in interfaceAssociateThreeDescription<TD extends TupleDesc<TD>>
-
getMatches
Description copied from interface:AssociateThreeDescription
List of associated features. Indexes refer to the index inside the input lists.- Specified by:
getMatches
in interfaceAssociateThreeDescription<TD extends TupleDesc<TD>>
- Returns:
- List of associated features.
-
setMaxScoreThreshold
public void setMaxScoreThreshold(double score) Description copied from interface:AssociateThreeDescription
Associations 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:
setMaxScoreThreshold
in interfaceAssociateThreeDescription<TD extends TupleDesc<TD>>
- Parameters:
score
- The threshold.
-
getScoreType
Description copied from interface:AssociateThreeDescription
Specifies the type of score which is returned.- Specified by:
getScoreType
in interfaceAssociateThreeDescription<TD extends TupleDesc<TD>>
- Returns:
- Type of association score.
-
isEachFeatureAssociatedOnlyOnce
public boolean isEachFeatureAssociatedOnlyOnce()Description copied from interface:AssociateThreeDescription
If true then each feature is associated at most one time- Specified by:
isEachFeatureAssociatedOnlyOnce
in interfaceAssociateThreeDescription<TD extends TupleDesc<TD>>
-