mirror of
https://github.com/opencv/opencv.git
synced 2025-06-12 04:12:52 +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;
|
||||
|
||||
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;
|
||||
|
||||
for( iIdx = 0; iIdx < imgCount; iIdx++ )
|
||||
|
Loading…
Reference in New Issue
Block a user