mirror of
https://github.com/opencv/opencv.git
synced 2025-06-10 19:24:07 +08:00
fixed bug in knnMatch method
This commit is contained in:
parent
de93fdb1af
commit
e202b13069
@ -279,7 +279,7 @@ void DescriptorMatcher::knnMatch( const Mat& queryDescriptors, vector<vector<DMa
|
|||||||
void DescriptorMatcher::radiusMatch( const Mat& queryDescriptors, vector<vector<DMatch> >& matches, float maxDistance,
|
void DescriptorMatcher::radiusMatch( const Mat& queryDescriptors, vector<vector<DMatch> >& matches, float maxDistance,
|
||||||
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