OpenCV  2.4.13.2
Open Source Computer Vision
cv::flann::Index Class Reference

#include <miniflann.hpp>

Public Member Functions

 Index ()
 
 Index (InputArray features, const IndexParams &params, cvflann::flann_distance_t distType=cvflann::FLANN_DIST_L2)
 
virtual ~Index ()
 
virtual void build (InputArray wholefeatures, InputArray additionalfeatures, const IndexParams &params, cvflann::flann_distance_t distType=cvflann::FLANN_DIST_L2)
 
virtual void knnSearch (InputArray query, OutputArray indices, OutputArray dists, int knn, const SearchParams &params=SearchParams())
 
virtual int radiusSearch (InputArray query, OutputArray indices, OutputArray dists, double radius, int maxResults, const SearchParams &params=SearchParams())
 
virtual void save (const std::string &filename) const
 
virtual bool load (InputArray features, const std::string &filename)
 
virtual void release ()
 
cvflann::flann_distance_t getDistance () const
 
cvflann::flann_algorithm_t getAlgorithm () const
 

Protected Attributes

cvflann::flann_distance_t distType
 
cvflann::flann_algorithm_t algo
 
int featureType
 
voidindex
 

Constructor & Destructor Documentation

§ Index() [1/2]

cv::flann::Index::Index ( )

§ Index() [2/2]

cv::flann::Index::Index ( InputArray  features,
const IndexParams params,
cvflann::flann_distance_t  distType = cvflann::FLANN_DIST_L2 
)

§ ~Index()

virtual cv::flann::Index::~Index ( )
virtual

Member Function Documentation

§ build()

virtual void cv::flann::Index::build ( InputArray  wholefeatures,
InputArray  additionalfeatures,
const IndexParams params,
cvflann::flann_distance_t  distType = cvflann::FLANN_DIST_L2 
)
virtual

§ getAlgorithm()

cvflann::flann_algorithm_t cv::flann::Index::getAlgorithm ( ) const

§ getDistance()

cvflann::flann_distance_t cv::flann::Index::getDistance ( ) const

§ knnSearch()

virtual void cv::flann::Index::knnSearch ( InputArray  query,
OutputArray  indices,
OutputArray  dists,
int  knn,
const SearchParams params = SearchParams() 
)
virtual

§ load()

virtual bool cv::flann::Index::load ( InputArray  features,
const std::string &  filename 
)
virtual

§ radiusSearch()

virtual int cv::flann::Index::radiusSearch ( InputArray  query,
OutputArray  indices,
OutputArray  dists,
double  radius,
int  maxResults,
const SearchParams params = SearchParams() 
)
virtual

§ release()

virtual void cv::flann::Index::release ( )
virtual

§ save()

virtual void cv::flann::Index::save ( const std::string &  filename) const
virtual

Member Data Documentation

§ algo

cvflann::flann_algorithm_t cv::flann::Index::algo
protected

§ distType

cvflann::flann_distance_t cv::flann::Index::distType
protected

§ featureType

int cv::flann::Index::featureType
protected

§ index

void* cv::flann::Index::index
protected

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