Skip to content

Commit d57321f

Browse files
committed
Merge pull request opencv#9528 from berak:fix_bfmatcher_hamming2
2 parents 1114cbf + da20821 commit d57321f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/features2d/src/matchers.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -958,7 +958,7 @@ void BFMatcher::radiusMatchImpl( InputArray _queryDescriptors, std::vector<std::
958958
Mat dist, distf;
959959

960960
int iIdx, imgCount = (int)trainDescCollection.size();
961-
int dtype = normType == NORM_HAMMING ||
961+
int dtype = normType == NORM_HAMMING || normType == NORM_HAMMING2 ||
962962
(normType == NORM_L1 && queryDescriptors.type() == CV_8U) ? CV_32S : CV_32F;
963963

964964
for( iIdx = 0; iIdx < imgCount; iIdx++ )

0 commit comments

Comments
 (0)