1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-31 00:03:03 +04:00

Add function to sort keypoints that are calculated in parallel to ensure stable output

This commit is contained in:
Woody Chow
2017-05-29 17:59:20 +09:00
parent 89fcd6d8af
commit 5a4f2b5d27
2 changed files with 44 additions and 0 deletions
@@ -117,6 +117,10 @@ public:
* Remove duplicated keypoints.
*/
static void removeDuplicated( std::vector<KeyPoint>& keypoints );
/*
* Remove duplicated keypoints and sort the remaining keypoints
*/
static void removeDuplicatedSorted( std::vector<KeyPoint>& keypoints );
/*
* Retain the specified number of the best keypoints (according to the response)