For every input query descriptor, retrieve, from a dataset provided from user or from the one internal to class, all the descriptors that are not further than maxDist from input query
matches = matcher.radiusMatch(queryDescriptors, trainDescriptors, maxDistance)
matches = matcher.radiusMatch(queryDescriptors, maxDistance)
[...] = matcher.radiusMatch(..., 'OptionName', optionValue, ...)
Input
- queryDescriptors query descriptors.
- trainDescriptors dataset of descriptors furnished by user.
- maxDistance search radius.
Output
- matches vector to host retrieved matches.
Options
- Mask mask to select which input descriptors must be
matched to ones in dataset. A vector of masks in the second
variant (the i-th mask in vector indicates whether each input
query can be matched with descriptors in dataset relative to
i-th image). Not set by default.
- CompactResult flag to obtain a compact result (if true, a
vector that doesn't contain any matches for a given query is
not inserted in final result). default false
For every input desciptor, find all the ones falling in a
certaing matching radius:
- in the first variant, for a pair of images
- in the second variant, from one image to a set