Package boofcv.abst.feature.associate
Interface AssociateThreeDescription<Desc>
- All Known Implementing Classes:
AssociateThreeByPairs
public interface AssociateThreeDescription<Desc>
Common interface for associating features between three images.
-
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<Desc> features, DogArray_I32 sets) Specify descriptors in image Avoid
setFeaturesB
(FastAccess<Desc> features, DogArray_I32 sets) Specify descriptors in image Cvoid
setFeaturesC
(FastAccess<Desc> 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.
-
Method Details
-
initialize
void initialize(int numberOfSets) Must call first. It specifies the number of sets feature descriptors can belong inside of -
setFeaturesA
Specify descriptors in image A- Parameters:
features
- (Input) feature descriptors. Reference is saved.sets
- (Input) Which sets the features belong to. Reference is saved.
-
setFeaturesC
Specify descriptors in image B- Parameters:
features
- feature descriptors. Reference is saved.sets
- (Input) Which sets the features belong to. Reference is saved.
-
setFeaturesB
Specify descriptors in image C- Parameters:
features
- feature descriptors. Reference is saved.sets
- (Input) Which sets the features belong to. Reference is saved.
-
associate
void associate()Finds the best match for each item in the source list with an item in the destination list. -
getMatches
DogArray<AssociatedTripleIndex> getMatches()List of associated features. Indexes refer to the index inside the input lists.- Returns:
- List of associated features.
-
setMaxScoreThreshold
void setMaxScoreThreshold(double score) 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- Parameters:
score
- The threshold.
-
getScoreType
MatchScoreType getScoreType()Specifies the type of score which is returned.- Returns:
- Type of association score.
-
isEachFeatureAssociatedOnlyOnce
boolean isEachFeatureAssociatedOnlyOnce()If true then each feature is associated at most one time
-