Skip to content

Commit da20821

Browse files
committed
features2d: fix BFMatcher.radiusMatch with HAMMING2
1 parent ef2b730 commit da20821

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)