#include <autotuned_index.h>
Inherits cvflann::NNIndex< Distance >.
Classes | |
| struct | CostData |
Public Types | |
| typedef Distance::ElementType | ElementType |
| typedef Distance::ResultType | DistanceType |
Public Member Functions | |
| AutotunedIndex (const Matrix< ElementType > &inputData, const IndexParams ¶ms=AutotunedIndexParams(), Distance d=Distance()) | |
| AutotunedIndex (const AutotunedIndex &) | |
| AutotunedIndex & | operator= (const AutotunedIndex &) |
| virtual | ~AutotunedIndex () |
| virtual void | buildIndex () |
| virtual void | saveIndex (FILE *stream) |
| virtual void | loadIndex (FILE *stream) |
| virtual void | findNeighbors (ResultSet< DistanceType > &result, const ElementType *vec, const SearchParams &searchParams) |
| IndexParams | getParameters () const |
| SearchParams | getSearchParameters () const |
| float | getSpeedup () const |
| virtual size_t | size () const |
| virtual size_t | veclen () const |
| virtual int | usedMemory () const |
| virtual flann_algorithm_t | getType () const |
| virtual void | knnSearch (const Matrix< ElementType > &queries, Matrix< int > &indices, Matrix< DistanceType > &dists, int knn, const SearchParams ¶ms) |
| Perform k-nearest neighbor search. | |
| virtual int | radiusSearch (const Matrix< ElementType > &query, Matrix< int > &indices, Matrix< DistanceType > &dists, float radius, const SearchParams ¶ms) |
| Perform radius search. | |
| typedef Distance::ElementType cvflann::AutotunedIndex< Distance >::ElementType |
Reimplemented from cvflann::NNIndex< Distance >.
| typedef Distance::ResultType cvflann::AutotunedIndex< Distance >::DistanceType |
Reimplemented from cvflann::NNIndex< Distance >.
| cvflann::AutotunedIndex< Distance >::AutotunedIndex | ( | const Matrix< ElementType > & | inputData, |
| const IndexParams & | params = AutotunedIndexParams(), |
||
| Distance | d = Distance() |
||
| ) |
| cvflann::AutotunedIndex< Distance >::AutotunedIndex | ( | const AutotunedIndex< Distance > & | ) |
| virtual cvflann::AutotunedIndex< Distance >::~AutotunedIndex | ( | ) | [virtual] |
| AutotunedIndex& cvflann::AutotunedIndex< Distance >::operator= | ( | const AutotunedIndex< Distance > & | ) |
| virtual void cvflann::AutotunedIndex< Distance >::buildIndex | ( | ) | [virtual] |
Method responsible with building the index.
Implements cvflann::NNIndex< Distance >.
| virtual void cvflann::AutotunedIndex< Distance >::saveIndex | ( | FILE * | stream | ) | [virtual] |
Saves the index to a stream
Implements cvflann::NNIndex< Distance >.
| virtual void cvflann::AutotunedIndex< Distance >::loadIndex | ( | FILE * | stream | ) | [virtual] |
Loads the index from a stream
Implements cvflann::NNIndex< Distance >.
| virtual void cvflann::AutotunedIndex< Distance >::findNeighbors | ( | ResultSet< DistanceType > & | result, |
| const ElementType * | vec, | ||
| const SearchParams & | searchParams | ||
| ) | [virtual] |
Method that searches for nearest-neighbors
Implements cvflann::NNIndex< Distance >.
| IndexParams cvflann::AutotunedIndex< Distance >::getParameters | ( | ) | const [virtual] |
Implements cvflann::NNIndex< Distance >.
| SearchParams cvflann::AutotunedIndex< Distance >::getSearchParameters | ( | ) | const |
| float cvflann::AutotunedIndex< Distance >::getSpeedup | ( | ) | const |
| virtual size_t cvflann::AutotunedIndex< Distance >::size | ( | ) | const [virtual] |
Number of features in this index.
Implements cvflann::NNIndex< Distance >.
| virtual size_t cvflann::AutotunedIndex< Distance >::veclen | ( | ) | const [virtual] |
The length of each vector in this index.
Implements cvflann::NNIndex< Distance >.
| virtual int cvflann::AutotunedIndex< Distance >::usedMemory | ( | ) | const [virtual] |
The amount of memory (in bytes) this index uses.
Implements cvflann::NNIndex< Distance >.
| virtual flann_algorithm_t cvflann::AutotunedIndex< Distance >::getType | ( | ) | const [virtual] |
Algorithm name
Implements cvflann::NNIndex< Distance >.
| virtual void cvflann::NNIndex< Distance >::knnSearch | ( | const Matrix< ElementType > & | queries, |
| Matrix< int > & | indices, | ||
| Matrix< DistanceType > & | dists, | ||
| int | knn, | ||
| const SearchParams & | params | ||
| ) | [virtual, inherited] |
Perform k-nearest neighbor search.
| [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 in cvflann::Index< Distance >, cvflann::Index< L1< ElementType > >, cvflann::Index< L2< ElementType > >, cvflann::KDTreeSingleIndex< Distance >, and cvflann::LshIndex< Distance >.
| virtual int cvflann::NNIndex< Distance >::radiusSearch | ( | const Matrix< ElementType > & | query, |
| Matrix< int > & | indices, | ||
| Matrix< DistanceType > & | dists, | ||
| float | radius, | ||
| const SearchParams & | params | ||
| ) | [virtual, inherited] |
Perform radius search.
| [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 |
Reimplemented in cvflann::Index< Distance >, cvflann::Index< L1< ElementType > >, and cvflann::Index< L2< ElementType > >.