From a7dfa261d85981a7a4b330fbc6d422f52d88948c Mon Sep 17 00:00:00 2001 From: Apoorv Date: Thu, 18 Oct 2018 04:09:16 +0530 Subject: [PATCH] Add documentation for radiusSearch --- modules/flann/include/opencv2/flann.hpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/modules/flann/include/opencv2/flann.hpp b/modules/flann/include/opencv2/flann.hpp index 22c6ffcf19..c72693d34e 100644 --- a/modules/flann/include/opencv2/flann.hpp +++ b/modules/flann/include/opencv2/flann.hpp @@ -217,6 +217,17 @@ public: std::vector& dists, int knn, const ::cvflann::SearchParams& params); void knnSearch(const Mat& queries, Mat& indices, Mat& dists, int knn, const ::cvflann::SearchParams& params); + /** @brief Performs a radius nearest neighbor search for a given query point using the index. + + @param query The query point. + @param indices Vector that will contain the indices of the nearest neighbors found. + @param dists Vector that will contain the distances to the nearest neighbors found. It has the same + number of elements as indices. + @param radius The search radius. + @param params SearchParams + + This function returns the number of nearest neighbors found. + */ int radiusSearch(const std::vector& query, std::vector& indices, std::vector& dists, DistanceType radius, const ::cvflann::SearchParams& params); int radiusSearch(const Mat& query, Mat& indices, Mat& dists,