OpenCV  2.4.13
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::IndexParams * getIndexParameters ()
 

Member Typedef Documentation

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

Constructor & Destructor Documentation

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

Member Function Documentation

template<typename Distance >
FLANN_DEPRECATEDconst ::cvflann::IndexParams* cv::flann::GenericIndex< Distance >::getIndexParameters ( )
inline
template<typename Distance >
::cvflann::IndexParams cv::flann::GenericIndex< Distance >::getParameters ( )
inline
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 
)
template<typename Distance >
void cv::flann::GenericIndex< Distance >::knnSearch ( const Mat queries,
Mat indices,
Mat dists,
int  knn,
const ::cvflann::SearchParams params 
)
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 
)
template<typename Distance >
int cv::flann::GenericIndex< Distance >::radiusSearch ( const Mat query,
Mat indices,
Mat dists,
DistanceType  radius,
const ::cvflann::SearchParams params 
)
template<typename Distance >
void cv::flann::GenericIndex< Distance >::save ( std::string  filename)
inline
template<typename Distance >
int cv::flann::GenericIndex< Distance >::size ( ) const
inline
template<typename Distance >
int cv::flann::GenericIndex< Distance >::veclen ( ) const
inline

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