OpenCV  4.1.0
Open Source Computer Vision
Public Member Functions | Protected Attributes | List of all members
cv::flann::Index Class Reference

#include <opencv2/flann/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 features, const IndexParams &params, cvflann::flann_distance_t distType=cvflann::FLANN_DIST_L2)
 
cvflann::flann_algorithm_t getAlgorithm () const
 
cvflann::flann_distance_t getDistance () const
 
virtual void knnSearch (InputArray query, OutputArray indices, OutputArray dists, int knn, const SearchParams &params=SearchParams())
 
virtual bool load (InputArray features, const String &filename)
 
virtual int radiusSearch (InputArray query, OutputArray indices, OutputArray dists, double radius, int maxResults, const SearchParams &params=SearchParams())
 
virtual void release ()
 
virtual void save (const String &filename) const
 

Protected Attributes

cvflann::flann_algorithm_t algo
 
cvflann::flann_distance_t distType
 
int featureType
 
void * index
 

Constructor & Destructor Documentation

cv::flann::Index::Index ( )
Python:
<flann_Index object>=cv.flann_Index()
<flann_Index object>=cv.flann_Index(features, params[, distType])
cv::flann::Index::Index ( InputArray  features,
const IndexParams params,
cvflann::flann_distance_t  distType = cvflann::FLANN_DIST_L2 
)
Python:
<flann_Index object>=cv.flann_Index()
<flann_Index object>=cv.flann_Index(features, params[, distType])
virtual cv::flann::Index::~Index ( )
virtual

Member Function Documentation

virtual void cv::flann::Index::build ( InputArray  features,
const IndexParams params,
cvflann::flann_distance_t  distType = cvflann::FLANN_DIST_L2 
)
virtual
Python:
None=cv.flann_Index.build(features, params[, distType])
cvflann::flann_algorithm_t cv::flann::Index::getAlgorithm ( ) const
Python:
retval=cv.flann_Index.getAlgorithm()
cvflann::flann_distance_t cv::flann::Index::getDistance ( ) const
Python:
retval=cv.flann_Index.getDistance()
virtual void cv::flann::Index::knnSearch ( InputArray  query,
OutputArray  indices,
OutputArray  dists,
int  knn,
const SearchParams params = SearchParams() 
)
virtual
Python:
indices, dists=cv.flann_Index.knnSearch(query, knn[, indices[, dists[, params]]])
virtual bool cv::flann::Index::load ( InputArray  features,
const String filename 
)
virtual
Python:
retval=cv.flann_Index.load(features, filename)
virtual int cv::flann::Index::radiusSearch ( InputArray  query,
OutputArray  indices,
OutputArray  dists,
double  radius,
int  maxResults,
const SearchParams params = SearchParams() 
)
virtual
Python:
retval, indices, dists=cv.flann_Index.radiusSearch(query, radius, maxResults[, indices[, dists[, params]]])
virtual void cv::flann::Index::release ( )
virtual
Python:
None=cv.flann_Index.release()
virtual void cv::flann::Index::save ( const String filename) const
virtual
Python:
None=cv.flann_Index.save(filename)

Member Data Documentation

cvflann::flann_algorithm_t cv::flann::Index::algo
protected
cvflann::flann_distance_t cv::flann::Index::distType
protected
int cv::flann::Index::featureType
protected
void* cv::flann::Index::index
protected

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