FeatureMatch.by_id2#
- FeatureMatch.by_id2(i: int) FeatureMatch | None[source]#
Find match by feature id in second set
- Parameters:
id (int) – id of feature in the second feature set
- Returns:
match that includes feature
idor None- Return type:
FeatureMatchinstance containing one correspondence
A
FeatureMatchobject can contains multiple correspondences which are essentially tuples (id1, id2) where id1 and id2 are indices into the first and second feature sets that were matched. Each feature has a position, strength, scale and id.This method returns the match that contains the feature in the second feature set with specific
id. If no such match exists it returns None.Note
For efficient lookup, on the first call a dict is built that maps feature id to index in the feature set.
Useful when features in the sets come from multiple images and
idis used to indicate the source image.
- Seealso: