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