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