cv.batchDistance - MATLAB File Help |
Naive nearest neighbor finder
[dst,nidx] = cv.batchDistance(src1, src2)
[...] = cv.batchDistance(..., 'OptionName', optionValue, ...)
single
or uint8
single
or uint8
K>0
, otherwise an empty matrix is returned.K=0
(the default), the
full pairwaise distance matrix is computed (of size N1-by-N2), otherwise
only distances to the K-nearest neighbors is returned (matrix of size
N1-by-K).