template class cv::flann::Index_

Deprecated Use GenericIndex class instead

#include <flann.hpp>

template <typename T>
class Index_
{
public:
    // typedefs

    typedef L2<T>::ResultType DistanceType;
    typedef L2<T>::ElementType ElementType;

    // construction

    Index_(
        const Mat& dataset,
        const ::cvflann::IndexParams& params
        );

    // methods

    const ::cvflann::IndexParams*
    getIndexParameters();

    ::cvflann::IndexParams
    getParameters();

    void
    knnSearch(
        const std::vector<ElementType>& query,
        std::vector<int>& indices,
        std::vector<DistanceType>& dists,
        int knn,
        const ::cvflann::SearchParams& searchParams
        );

    void
    knnSearch(
        const Mat& queries,
        Mat& indices,
        Mat& dists,
        int knn,
        const ::cvflann::SearchParams& searchParams
        );

    int
    radiusSearch(
        const std::vector<ElementType>& query,
        std::vector<int>& indices,
        std::vector<DistanceType>& dists,
        DistanceType radius,
        const ::cvflann::SearchParams& searchParams
        );

    int
    radiusSearch(
        const Mat& query,
        Mat& indices,
        Mat& dists,
        DistanceType radius,
        const ::cvflann::SearchParams& searchParams
        );

    void
    save(String filename);

    int
    size() const;

    int
    veclen() const;
};