java.lang.Object
imagingbook.common.sift.SiftMatcher
Instances of this class perform matching between SIFT features. See Secs. 25.5 of [1] for more details.
[1] W. Burger, M.J. Burge, Digital Image Processing – An Algorithmic Introduction, 3rd ed, Springer (2022).
- Version:
- 2022/11/20 removed inner Parameters class, changed constructor
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructor using default parameters.SiftMatcher
(VectorNorm.NormType normType, double rMax) Constructor using specific parameters. -
Method Summary
Modifier and TypeMethodDescriptionmatch
(Collection<SiftDescriptor> setA, Collection<SiftDescriptor> setB) Finds matches between two sets of SIFT descriptors.
-
Field Details
-
DefaultNormType
-
DefaultRMax
- See Also:
-
-
Constructor Details
-
SiftMatcher
Constructor using specific parameters.- Parameters:
normType
- the distance norm for comparing feature vectorsrMax
- the max. distance ratio between best and second-best match
-
SiftMatcher
public SiftMatcher()Constructor using default parameters.- See Also:
-
-
Method Details
-
match
Finds matches between two sets of SIFT descriptors. For each descriptor in the first set, the best and second-best fits are searched for in the second set. A valid match instance is created if the distance to the best-matching descriptor is significantly smaller than the distance to the second-best matching descriptor. The resulting list of matches is sorted by increasing match distance.- Parameters:
setA
- the first set of SIFT descriptorssetB
- the second set of SIFT descriptors- Returns:
- a (possibly empty) list of
SiftMatch
instances
-