mirror of
https://github.com/opencv/opencv.git
synced 2025-06-10 19:24:07 +08:00
fixed L2 used in BruteForceMatcher
This commit is contained in:
parent
93dc0dbae5
commit
2780747fec
@ -1499,7 +1499,7 @@ struct CV_EXPORTS L2
|
|||||||
ResultType diff = a[i] - b[i];
|
ResultType diff = a[i] - b[i];
|
||||||
result += diff*diff;
|
result += diff*diff;
|
||||||
}
|
}
|
||||||
return result;
|
return sqrt(result);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1739,7 +1739,7 @@ public:
|
|||||||
// Matches test keypoints to the training set
|
// Matches test keypoints to the training set
|
||||||
// image The source image
|
// image The source image
|
||||||
// points Test keypoints from the source image
|
// points Test keypoints from the source image
|
||||||
// class_ids A vector to be filled with keypoint class_ids
|
// indices A vector to be filled with keypoint class indices
|
||||||
virtual void match( const Mat& image, vector<KeyPoint>& points, vector<int>& indices ) = 0;
|
virtual void match( const Mat& image, vector<KeyPoint>& points, vector<int>& indices ) = 0;
|
||||||
|
|
||||||
// Clears keypoints storing in collection
|
// Clears keypoints storing in collection
|
||||||
|
Loading…
Reference in New Issue
Block a user