hamming-fix.diff
b/modules/features2d/src/matchers.cpp | ||
---|---|---|
426 | 426 |
|
427 | 427 |
for( int qIdx = 0; qIdx < queryDescriptors.rows; qIdx++ ) |
428 | 428 |
{ |
429 |
const float* distptr = dist.ptr<float>(qIdx); |
|
429 |
const float* distptr = distf.ptr<float>(qIdx);
|
|
430 | 430 |
|
431 | 431 |
vector<DMatch>& mq = matches[qIdx]; |
432 |
for( int k = 0; k < dist.cols; k++ ) |
|
432 |
for( int k = 0; k < distf.cols; k++ )
|
|
433 | 433 |
{ |
434 | 434 |
if( distptr[k] <= maxDistance ) |
435 | 435 |
mq.push_back( DMatch(qIdx, k, iIdx, distptr[k]) ); |