From de93fdb1afef88a0913ed3af6bbd5f5306558576 Mon Sep 17 00:00:00 2001 From: Alexander Shishkov Date: Fri, 29 Apr 2011 13:23:22 +0000 Subject: [PATCH] fixed bug in knnMatch method --- modules/features2d/src/matchers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/features2d/src/matchers.cpp b/modules/features2d/src/matchers.cpp index e363c710fa..27f52a4748 100755 --- a/modules/features2d/src/matchers.cpp +++ b/modules/features2d/src/matchers.cpp @@ -264,7 +264,7 @@ void DescriptorMatcher::checkMasks( const vector& masks, int queryDescripto void DescriptorMatcher::knnMatch( const Mat& queryDescriptors, vector >& matches, int knn, const vector& masks, bool compactResult ) { - matches.empty(); + matches.clear(); if( empty() || queryDescriptors.empty() ) return;