features2d: fix BFMatcher.radiusMatch with HAMMING2

pull/9528/head
berak 7 years ago
parent ef2b73043d
commit da208216ee
  1. 2
      modules/features2d/src/matchers.cpp

@ -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…
Cancel
Save