mirror of
https://github.com/opencv/opencv.git
synced 2024-12-18 11:28:02 +08:00
fixed bug in knnMatch method
This commit is contained in:
parent
9702b5ef8a
commit
de93fdb1af
@ -264,7 +264,7 @@ void DescriptorMatcher::checkMasks( const vector<Mat>& masks, int queryDescripto
|
|||||||
void DescriptorMatcher::knnMatch( const Mat& queryDescriptors, vector<vector<DMatch> >& matches, int knn,
|
void DescriptorMatcher::knnMatch( const Mat& queryDescriptors, vector<vector<DMatch> >& matches, int knn,
|
||||||
const vector<Mat>& masks, bool compactResult )
|
const vector<Mat>& masks, bool compactResult )
|
||||||
{
|
{
|
||||||
matches.empty();
|
matches.clear();
|
||||||
if( empty() || queryDescriptors.empty() )
|
if( empty() || queryDescriptors.empty() )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user