match (cv.DescriptorMatcher) - MATLAB File Help |
Finds the best match for each descriptor from a query set
matches = matcher.match(queryDescriptors, trainDescriptors)
matches = matcher.match(queryDescriptors)
[...] = matcher.match(..., 'OptionName', optionValue, ...)
Mask
, no match is added for this descriptor. So,
matches
size may be smaller than the query descriptors
count. A 1-by-N structure array with the following fields:
[size(queryDescriptors,1),size(trainDescriptors,1)]
.masks{i}
specifies
permissible matches between the input query descriptors and
stored train descriptors from the i-th image
trainDescCollection{i}
. Cell array of length
length(trainDescriptors)
, each a matrix of size
[size(queryDescriptors,1),size(trainDescriptors{i},1)]
.In the first variant of this method, the train descriptors are
passed as an input argument. In the second variant of the
method, train descriptors collection that was set by
cv.DescriptorMatcher.add is used. Optional mask (or masks) can
be passed to specify which query and training descriptors can be
matched. Namely, queryDescriptors(i,:)
can be matched with
trainDescriptors(j,:)
only if mask(i,j)
is non-zero.
Access | public |
Sealed | false |
Static | false |