mirror of
https://github.com/opencv/opencv.git
synced 2025-06-13 13:13:26 +08:00
features2d: fix BFMatcher.radiusMatch with HAMMING2
This commit is contained in:
parent
ef2b73043d
commit
da208216ee
@ -958,7 +958,7 @@ void BFMatcher::radiusMatchImpl( InputArray _queryDescriptors, std::vector<std::
|
|||||||
Mat dist, distf;
|
Mat dist, distf;
|
||||||
|
|
||||||
int iIdx, imgCount = (int)trainDescCollection.size();
|
int iIdx, imgCount = (int)trainDescCollection.size();
|
||||||
int dtype = normType == NORM_HAMMING ||
|
int dtype = normType == NORM_HAMMING || normType == NORM_HAMMING2 ||
|
||||||
(normType == NORM_L1 && queryDescriptors.type() == CV_8U) ? CV_32S : CV_32F;
|
(normType == NORM_L1 && queryDescriptors.type() == CV_8U) ? CV_32S : CV_32F;
|
||||||
|
|
||||||
for( iIdx = 0; iIdx < imgCount; iIdx++ )
|
for( iIdx = 0; iIdx < imgCount; iIdx++ )
|
||||||
|
Loading…
Reference in New Issue
Block a user