#include <opencv2/flann/flann_base.hpp>
|
| Index (const Matrix< ElementType > &features, const IndexParams ¶ms, Distance distance=Distance()) |
|
| ~Index () |
|
void | buildIndex () CV_OVERRIDE |
|
void | findNeighbors (ResultSet< DistanceType > &result, const ElementType *vec, const SearchParams &searchParams) CV_OVERRIDE |
| Method that searches for nearest-neighbours.
|
|
NNIndex< Distance > * | getIndex () |
| Returns actual index.
|
|
const IndexParams * | getIndexParameters () |
| Returns index parameters.
|
|
IndexParams | getParameters () const CV_OVERRIDE |
|
flann_algorithm_t | getType () const CV_OVERRIDE |
|
void | knnSearch (const Matrix< ElementType > &queries, Matrix< int > &indices, Matrix< DistanceType > &dists, int knn, const SearchParams ¶ms) CV_OVERRIDE |
| Perform k-nearest neighbor search.
|
|
virtual void | loadIndex (FILE *stream) CV_OVERRIDE |
| Loads the index from a stream.
|
|
int | radiusSearch (const Matrix< ElementType > &query, Matrix< int > &indices, Matrix< DistanceType > &dists, float radius, const SearchParams ¶ms) CV_OVERRIDE |
| Perform radius search.
|
|
void | save (cv::String filename) |
|
virtual void | saveIndex (FILE *stream) CV_OVERRIDE |
| Saves the index to a stream.
|
|
size_t | size () const CV_OVERRIDE |
|
virtual int | usedMemory () const CV_OVERRIDE |
|
size_t | veclen () const CV_OVERRIDE |
|
virtual | ~NNIndex () |
|
template<typename Distance>
template<typename Distance>
template<typename Distance>
template<typename Distance>
template<typename Distance>
template<typename Distance>
template<typename Distance>
template<typename Distance>
template<typename Distance>
template<typename Distance>
template<typename Distance>
Perform k-nearest neighbor search.
- Parameters
-
[in] | queries | The query points for which to find the nearest neighbors |
[out] | indices | The indices of the nearest neighbors found |
[out] | dists | Distances to the nearest neighbors found |
[in] | knn | Number of nearest neighbors to return |
[in] | params | Search parameters |
Reimplemented from cvflann::NNIndex< Distance >.
template<typename Distance>
template<typename Distance>
Perform radius search.
- Parameters
-
[in] | query | The query point |
[out] | indices | The indinces of the neighbors found within the given radius |
[out] | dists | The distances to the nearest neighbors found |
[in] | radius | The radius used for search |
[in] | params | Search parameters |
- Returns
- Number of neighbors found
Reimplemented from cvflann::NNIndex< Distance >.
template<typename Distance>
template<typename Distance>
template<typename Distance>
template<typename Distance>
template<typename Distance>
The documentation for this class was generated from the following file: