OpenCV  2.4.13.4
Open Source Computer Vision
cv::flann::GenericIndex< Distance > Class Template Reference

#include <flann.hpp>

Public Types

typedef Distance::ElementType ElementType
 
typedef Distance::ResultType DistanceType
 

Public Member Functions

 GenericIndex (const Mat &features, const ::cvflann::IndexParams &params, Distance distance=Distance())
 
 ~GenericIndex ()
 
void knnSearch (const vector< ElementType > &query, vector< int > &indices, vector< DistanceType > &dists, int knn, const ::cvflann::SearchParams &params)
 
void knnSearch (const Mat &queries, Mat &indices, Mat &dists, int knn, const ::cvflann::SearchParams &params)
 
int radiusSearch (const vector< ElementType > &query, vector< int > &indices, vector< DistanceType > &dists, DistanceType radius, const ::cvflann::SearchParams &params)
 
int radiusSearch (const Mat &query, Mat &indices, Mat &dists, DistanceType radius, const ::cvflann::SearchParams &params)
 
void save (std::string filename)
 
int veclen () const
 
int size () const
 
::cvflann::IndexParams getParameters ()
 
FLANN_DEPRECATEDconst ::cvflann::IndexParamsgetIndexParameters ()
 

Member Typedef Documentation

§ DistanceType

template<typename Distance >
typedef Distance::ResultType cv::flann::GenericIndex< Distance >::DistanceType

§ ElementType

template<typename Distance >
typedef Distance::ElementType cv::flann::GenericIndex< Distance >::ElementType

Constructor & Destructor Documentation

§ GenericIndex()

template<typename Distance >
cv::flann::GenericIndex< Distance >::GenericIndex ( const Mat features,
const ::cvflann::IndexParams params,
Distance  distance = Distance() 
)

§ ~GenericIndex()

template<typename Distance >
cv::flann::GenericIndex< Distance >::~GenericIndex ( )

Member Function Documentation

§ getIndexParameters()

template<typename Distance >
FLANN_DEPRECATEDconst ::cvflann::IndexParams* cv::flann::GenericIndex< Distance >::getIndexParameters ( )
inline

§ getParameters()

template<typename Distance >
::cvflann::IndexParams cv::flann::GenericIndex< Distance >::getParameters ( )
inline

§ knnSearch() [1/2]

template<typename Distance >
void cv::flann::GenericIndex< Distance >::knnSearch ( const vector< ElementType > &  query,
vector< int > &  indices,
vector< DistanceType > &  dists,
int  knn,
const ::cvflann::SearchParams params 
)

§ knnSearch() [2/2]

template<typename Distance >
void cv::flann::GenericIndex< Distance >::knnSearch ( const Mat queries,
Mat indices,
Mat dists,
int  knn,
const ::cvflann::SearchParams params 
)

§ radiusSearch() [1/2]

template<typename Distance >
int cv::flann::GenericIndex< Distance >::radiusSearch ( const vector< ElementType > &  query,
vector< int > &  indices,
vector< DistanceType > &  dists,
DistanceType  radius,
const ::cvflann::SearchParams params 
)

§ radiusSearch() [2/2]

template<typename Distance >
int cv::flann::GenericIndex< Distance >::radiusSearch ( const Mat query,
Mat indices,
Mat dists,
DistanceType  radius,
const ::cvflann::SearchParams params 
)

§ save()

template<typename Distance >
void cv::flann::GenericIndex< Distance >::save ( std::string  filename)
inline

§ size()

template<typename Distance >
int cv::flann::GenericIndex< Distance >::size ( ) const
inline

§ veclen()

template<typename Distance >
int cv::flann::GenericIndex< Distance >::veclen ( ) const
inline

The documentation for this class was generated from the following file: