#include <flann_base.hpp>
|
| Index (const Matrix< ElementType > &features, const IndexParams ¶ms, Distance distance=Distance()) |
|
| ~Index () |
|
void | addIndex (const Matrix< ElementType > &wholeData, const Matrix< ElementType > &additionalData) |
|
void | buildIndex () |
|
void | save (std::string filename) |
|
virtual void | saveIndex (FILE *stream) |
| Saves the index to a stream. More...
|
|
virtual void | loadIndex (FILE *stream) |
| Loads the index from a stream. More...
|
|
size_t | veclen () const |
|
size_t | size () const |
|
flann_algorithm_t | getType () const |
|
virtual int | usedMemory () const |
|
IndexParams | getParameters () const |
|
void | knnSearch (const Matrix< ElementType > &queries, Matrix< int > &indices, Matrix< DistanceType > &dists, int knn, const SearchParams ¶ms) |
| Perform k-nearest neighbor search. More...
|
|
int | radiusSearch (const Matrix< ElementType > &query, Matrix< int > &indices, Matrix< DistanceType > &dists, float radius, const SearchParams ¶ms) |
| Perform radius search. More...
|
|
void | findNeighbors (ResultSet< DistanceType > &result, const ElementType *vec, const SearchParams &searchParams) |
| Method that searches for nearest-neighbours. More...
|
|
NNIndex< Distance > * | getIndex () |
| Returns actual index. More...
|
|
const IndexParams * | getIndexParameters () |
| Returns index parameters. More...
|
|
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>
Returns index parameters.
- Deprecated:
- use getParameters() instead.
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: