This commit is contained in:
Maria Dimashova
2012-04-12 16:43:37 +00:00
parent 97835a8f32
commit 9d764b4115
2 changed files with 4 additions and 9 deletions

View File

@@ -383,7 +383,7 @@ void BFMatcher::knnMatchImpl( const Mat& queryDescriptors, vector<vector<DMatch>
vector<DMatch>& mq = matches.back();
mq.reserve(knn);
for( int k = 0; k < knn; k++ )
for( int k = 0; k < nidx.cols; k++ )
{
if( nidxptr[k] < 0 )
break;