#include <composite_index.h>
Public Member Functions | |
void | buildIndex () |
CompositeIndex (const Matrix< ELEM_TYPE > &inputData, const CompositeIndexParams ¶ms=CompositeIndexParams()) | |
void | findNeighbors (ResultSet< ELEM_TYPE > &result, const ELEM_TYPE *vec, const SearchParams &searchParams) |
const IndexParams * | getParameters () const |
flann_algorithm_t | getType () const |
void | loadIndex (FILE *stream) |
void | saveIndex (FILE *stream) |
size_t | size () const |
int | usedMemory () const |
size_t | veclen () const |
virtual | ~CompositeIndex () |
Private Attributes | |
const Matrix< ELEM_TYPE > | dataset |
const IndexParams & | index_params |
KDTreeIndex< ELEM_TYPE, DIST_TYPE > * | kdtree |
KMeansIndex< ELEM_TYPE, DIST_TYPE > * | kmeans |
Definition at line 73 of file composite_index.h.
cvflann::CompositeIndex< ELEM_TYPE, DIST_TYPE >::CompositeIndex | ( | const Matrix< ELEM_TYPE > & | inputData, | |
const CompositeIndexParams & | params = CompositeIndexParams() | |||
) | [inline] |
Definition at line 85 of file composite_index.h.
virtual cvflann::CompositeIndex< ELEM_TYPE, DIST_TYPE >::~CompositeIndex | ( | ) | [inline, virtual] |
Definition at line 96 of file composite_index.h.
void cvflann::CompositeIndex< ELEM_TYPE, DIST_TYPE >::buildIndex | ( | ) | [inline, virtual] |
Method responsible with building the index.
Implements cvflann::NNIndex< ELEM_TYPE >.
Definition at line 125 of file composite_index.h.
void cvflann::CompositeIndex< ELEM_TYPE, DIST_TYPE >::findNeighbors | ( | ResultSet< ELEM_TYPE > & | result, | |
const ELEM_TYPE * | vec, | |||
const SearchParams & | searchParams | |||
) | [inline, virtual] |
Method that searches for nearest-neighbors
Implements cvflann::NNIndex< ELEM_TYPE >.
Definition at line 147 of file composite_index.h.
const IndexParams* cvflann::CompositeIndex< ELEM_TYPE, DIST_TYPE >::getParameters | ( | ) | const [inline, virtual] |
Returns the parameters used for the index
Implements cvflann::NNIndex< ELEM_TYPE >.
Definition at line 153 of file composite_index.h.
flann_algorithm_t cvflann::CompositeIndex< ELEM_TYPE, DIST_TYPE >::getType | ( | ) | const [inline, virtual] |
Algorithm name
Implements cvflann::NNIndex< ELEM_TYPE >.
Definition at line 103 of file composite_index.h.
void cvflann::CompositeIndex< ELEM_TYPE, DIST_TYPE >::loadIndex | ( | FILE * | stream | ) | [inline, virtual] |
Loads the index from a stream
Implements cvflann::NNIndex< ELEM_TYPE >.
Definition at line 141 of file composite_index.h.
void cvflann::CompositeIndex< ELEM_TYPE, DIST_TYPE >::saveIndex | ( | FILE * | stream | ) | [inline, virtual] |
Saves the index to a stream
Implements cvflann::NNIndex< ELEM_TYPE >.
Definition at line 134 of file composite_index.h.
size_t cvflann::CompositeIndex< ELEM_TYPE, DIST_TYPE >::size | ( | ) | const [inline, virtual] |
Number of features in this index.
Implements cvflann::NNIndex< ELEM_TYPE >.
Definition at line 109 of file composite_index.h.
int cvflann::CompositeIndex< ELEM_TYPE, DIST_TYPE >::usedMemory | ( | ) | const [inline, virtual] |
The amount of memory (in bytes) this index uses.
Implements cvflann::NNIndex< ELEM_TYPE >.
Definition at line 120 of file composite_index.h.
size_t cvflann::CompositeIndex< ELEM_TYPE, DIST_TYPE >::veclen | ( | ) | const [inline, virtual] |
The length of each vector in this index.
Implements cvflann::NNIndex< ELEM_TYPE >.
Definition at line 114 of file composite_index.h.
const Matrix<ELEM_TYPE> cvflann::CompositeIndex< ELEM_TYPE, DIST_TYPE >::dataset [private] |
Definition at line 78 of file composite_index.h.
const IndexParams& cvflann::CompositeIndex< ELEM_TYPE, DIST_TYPE >::index_params [private] |
Definition at line 80 of file composite_index.h.
KDTreeIndex<ELEM_TYPE, DIST_TYPE>* cvflann::CompositeIndex< ELEM_TYPE, DIST_TYPE >::kdtree [private] |
Definition at line 76 of file composite_index.h.
KMeansIndex<ELEM_TYPE, DIST_TYPE>* cvflann::CompositeIndex< ELEM_TYPE, DIST_TYPE >::kmeans [private] |
Definition at line 75 of file composite_index.h.