#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 () |
|
§ DistanceType
template<typename Distance>
§ ElementType
template<typename Distance>
§ Index()
template<typename Distance>
§ ~Index()
template<typename Distance>
§ addIndex()
template<typename Distance>
§ buildIndex()
template<typename Distance>
§ findNeighbors()
template<typename Distance>
§ getIndex()
template<typename Distance>
§ getIndexParameters()
template<typename Distance>
Returns index parameters.
- Deprecated:
- use getParameters() instead.
§ getParameters()
template<typename Distance>
§ getType()
template<typename Distance>
§ knnSearch()
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 >.
§ loadIndex()
template<typename Distance>
§ radiusSearch()
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 >.
§ save()
template<typename Distance>
§ saveIndex()
template<typename Distance>
§ size()
template<typename Distance>
§ usedMemory()
template<typename Distance>
§ veclen()
template<typename Distance>
The documentation for this class was generated from the following file: