#include <autotuned_index.h>
Inherits cvflann::NNIndex< ELEM_TYPE >.
Classes | |
struct | CostData |
Public Member Functions | |
AutotunedIndex (const Matrix< ELEM_TYPE > &inputData, const AutotunedIndexParams ¶ms=AutotunedIndexParams()) | |
virtual | ~AutotunedIndex () |
virtual void | buildIndex () |
virtual void | saveIndex (FILE *stream) |
virtual void | loadIndex (FILE *stream) |
virtual void | findNeighbors (ResultSet< ELEM_TYPE > &result, const ELEM_TYPE *vec, const SearchParams &searchParams) |
const IndexParams * | getParameters () const |
virtual size_t | size () const |
virtual size_t | veclen () const |
virtual int | usedMemory () const |
virtual flann_algorithm_t | getType () const |
cvflann::AutotunedIndex< ELEM_TYPE, DIST_TYPE >::AutotunedIndex | ( | const Matrix< ELEM_TYPE > & | inputData, |
const AutotunedIndexParams & | params = AutotunedIndexParams() |
||
) |
virtual cvflann::AutotunedIndex< ELEM_TYPE, DIST_TYPE >::~AutotunedIndex | ( | ) | [virtual] |
virtual void cvflann::AutotunedIndex< ELEM_TYPE, DIST_TYPE >::buildIndex | ( | ) | [virtual] |
Method responsible with building the index.
Implements cvflann::NNIndex< ELEM_TYPE >.
virtual void cvflann::AutotunedIndex< ELEM_TYPE, DIST_TYPE >::saveIndex | ( | FILE * | stream | ) | [virtual] |
Saves the index to a stream
Implements cvflann::NNIndex< ELEM_TYPE >.
virtual void cvflann::AutotunedIndex< ELEM_TYPE, DIST_TYPE >::loadIndex | ( | FILE * | stream | ) | [virtual] |
Loads the index from a stream
Implements cvflann::NNIndex< ELEM_TYPE >.
virtual void cvflann::AutotunedIndex< ELEM_TYPE, DIST_TYPE >::findNeighbors | ( | ResultSet< ELEM_TYPE > & | result, |
const ELEM_TYPE * | vec, | ||
const SearchParams & | searchParams | ||
) | [virtual] |
Method that searches for nearest-neighbors
Implements cvflann::NNIndex< ELEM_TYPE >.
const IndexParams* cvflann::AutotunedIndex< ELEM_TYPE, DIST_TYPE >::getParameters | ( | ) | const [virtual] |
Returns the parameters used for the index
Implements cvflann::NNIndex< ELEM_TYPE >.
virtual size_t cvflann::AutotunedIndex< ELEM_TYPE, DIST_TYPE >::size | ( | ) | const [virtual] |
Number of features in this index.
Implements cvflann::NNIndex< ELEM_TYPE >.
virtual size_t cvflann::AutotunedIndex< ELEM_TYPE, DIST_TYPE >::veclen | ( | ) | const [virtual] |
The length of each vector in this index.
Implements cvflann::NNIndex< ELEM_TYPE >.
virtual int cvflann::AutotunedIndex< ELEM_TYPE, DIST_TYPE >::usedMemory | ( | ) | const [virtual] |
The amount of memory (in bytes) this index uses.
Implements cvflann::NNIndex< ELEM_TYPE >.
virtual flann_algorithm_t cvflann::AutotunedIndex< ELEM_TYPE, DIST_TYPE >::getType | ( | ) | const [virtual] |
Algorithm name
Implements cvflann::NNIndex< ELEM_TYPE >.