projects
/
platform
/
upstream
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef2b730
)
features2d: fix BFMatcher.radiusMatch with HAMMING2
author
berak
<px1704@web.de>
Thu, 31 Aug 2017 15:24:02 +0000
(17:24 +0200)
committer
berak
<px1704@web.de>
Thu, 31 Aug 2017 15:24:02 +0000
(17:24 +0200)
modules/features2d/src/matchers.cpp
patch
|
blob
|
history
diff --git
a/modules/features2d/src/matchers.cpp
b/modules/features2d/src/matchers.cpp
index
4e9a7b4
..
7600323
100644
(file)
--- a/
modules/features2d/src/matchers.cpp
+++ b/
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++ )