Commit 18067c8e authored by Andrey Kamaev's avatar Andrey Kamaev

Fixed flann deprecation warnings from flann itself

parent cb1565eb
...@@ -225,7 +225,7 @@ int GenericIndex<Distance>::radiusSearch(const Mat& query, Mat& indices, Mat& di ...@@ -225,7 +225,7 @@ int GenericIndex<Distance>::radiusSearch(const Mat& query, Mat& indices, Mat& di
* @deprecated Use GenericIndex class instead * @deprecated Use GenericIndex class instead
*/ */
template <typename T> template <typename T>
class FLANN_DEPRECATED Index_ { class Index_ {
public: public:
typedef typename L2<T>::ElementType ElementType; typedef typename L2<T>::ElementType ElementType;
typedef typename L2<T>::ResultType DistanceType; typedef typename L2<T>::ResultType DistanceType;
...@@ -277,6 +277,8 @@ private: ...@@ -277,6 +277,8 @@ private:
::cvflann::Index< L1<ElementType> >* nnIndex_L1; ::cvflann::Index< L1<ElementType> >* nnIndex_L1;
}; };
template <typename T>
class FLANN_DEPRECATED Index_;
template <typename T> template <typename T>
Index_<T>::Index_(const Mat& dataset, const ::cvflann::IndexParams& params) Index_<T>::Index_(const Mat& dataset, const ::cvflann::IndexParams& params)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment