diff --git a/modules/flann/include/opencv2/flann/flann.hpp b/modules/flann/include/opencv2/flann/flann.hpp index ff19f623d..a01e1a84f 100644 --- a/modules/flann/include/opencv2/flann/flann.hpp +++ b/modules/flann/include/opencv2/flann/flann.hpp @@ -225,7 +225,7 @@ int GenericIndex::radiusSearch(const Mat& query, Mat& indices, Mat& di * @deprecated Use GenericIndex class instead */ template -class FLANN_DEPRECATED Index_ { +class Index_ { public: typedef typename L2::ElementType ElementType; typedef typename L2::ResultType DistanceType; @@ -277,6 +277,8 @@ private: ::cvflann::Index< L1 >* nnIndex_L1; }; +template +class FLANN_DEPRECATED Index_; template Index_::Index_(const Mat& dataset, const ::cvflann::IndexParams& params)