#include <linear_index.h>
Public Types | |
typedef NNIndex< Distance > | BaseClass |
typedef Distance::ResultType | DistanceType |
typedef Distance::ElementType | ElementType |
Public Member Functions | |
void | addPoints (const Matrix< ElementType > &points, float rebuild_threshold=2) |
Incrementally add points to the index. | |
BaseClass * | clone () const |
void | findNeighbors (ResultSet< DistanceType > &resultSet, const ElementType *vec, const SearchParams &) const |
flann_algorithm_t | getType () const |
LinearIndex (const IndexParams ¶ms=LinearIndexParams(), Distance d=Distance()) | |
LinearIndex (const Matrix< ElementType > &input_data, const IndexParams ¶ms=LinearIndexParams(), Distance d=Distance()) | |
LinearIndex (const LinearIndex &other) | |
void | loadIndex (FILE *stream) |
LinearIndex & | operator= (LinearIndex other) |
void | saveIndex (FILE *stream) |
template<typename Archive > | |
void | serialize (Archive &ar) |
int | usedMemory () const |
virtual | ~LinearIndex () |
Protected Member Functions | |
void | buildIndexImpl () |
void | freeIndex () |
Definition at line 49 of file linear_index.h.
typedef NNIndex<Distance> rtflann::LinearIndex< Distance >::BaseClass |
Definition at line 56 of file linear_index.h.
typedef Distance::ResultType rtflann::LinearIndex< Distance >::DistanceType |
Reimplemented from rtflann::NNIndex< Distance >.
Definition at line 54 of file linear_index.h.
typedef Distance::ElementType rtflann::LinearIndex< Distance >::ElementType |
Reimplemented from rtflann::NNIndex< Distance >.
Definition at line 53 of file linear_index.h.
rtflann::LinearIndex< Distance >::LinearIndex | ( | const IndexParams & | params = LinearIndexParams() , |
Distance | d = Distance() |
||
) | [inline] |
Definition at line 58 of file linear_index.h.
rtflann::LinearIndex< Distance >::LinearIndex | ( | const Matrix< ElementType > & | input_data, |
const IndexParams & | params = LinearIndexParams() , |
||
Distance | d = Distance() |
||
) | [inline] |
Definition at line 63 of file linear_index.h.
rtflann::LinearIndex< Distance >::LinearIndex | ( | const LinearIndex< Distance > & | other | ) | [inline] |
Definition at line 69 of file linear_index.h.
virtual rtflann::LinearIndex< Distance >::~LinearIndex | ( | ) | [inline, virtual] |
Definition at line 79 of file linear_index.h.
void rtflann::LinearIndex< Distance >::addPoints | ( | const Matrix< ElementType > & | points, |
float | rebuild_threshold = 2 |
||
) | [inline, virtual] |
Incrementally add points to the index.
points | Matrix with points to be added |
rebuild_threshold |
Reimplemented from rtflann::NNIndex< Distance >.
Definition at line 88 of file linear_index.h.
void rtflann::LinearIndex< Distance >::buildIndexImpl | ( | ) | [inline, protected, virtual] |
Implements rtflann::NNIndex< Distance >.
Definition at line 146 of file linear_index.h.
BaseClass* rtflann::LinearIndex< Distance >::clone | ( | ) | const [inline, virtual] |
Implements rtflann::NNIndex< Distance >.
Definition at line 83 of file linear_index.h.
void rtflann::LinearIndex< Distance >::findNeighbors | ( | ResultSet< DistanceType > & | resultSet, |
const ElementType * | vec, | ||
const SearchParams & | |||
) | const [inline, virtual] |
Implements rtflann::NNIndex< Distance >.
Definition at line 129 of file linear_index.h.
void rtflann::LinearIndex< Distance >::freeIndex | ( | ) | [inline, protected, virtual] |
Implements rtflann::NNIndex< Distance >.
Definition at line 151 of file linear_index.h.
flann_algorithm_t rtflann::LinearIndex< Distance >::getType | ( | ) | const [inline, virtual] |
Implements rtflann::IndexBase.
Definition at line 94 of file linear_index.h.
void rtflann::LinearIndex< Distance >::loadIndex | ( | FILE * | stream | ) | [inline, virtual] |
Implements rtflann::IndexBase.
Definition at line 123 of file linear_index.h.
LinearIndex& rtflann::LinearIndex< Distance >::operator= | ( | LinearIndex< Distance > | other | ) | [inline] |
Definition at line 73 of file linear_index.h.
void rtflann::LinearIndex< Distance >::saveIndex | ( | FILE * | stream | ) | [inline, virtual] |
Implements rtflann::IndexBase.
Definition at line 117 of file linear_index.h.
void rtflann::LinearIndex< Distance >::serialize | ( | Archive & | ar | ) | [inline] |
Reimplemented from rtflann::NNIndex< Distance >.
Definition at line 106 of file linear_index.h.
int rtflann::LinearIndex< Distance >::usedMemory | ( | ) | const [inline, virtual] |
Implements rtflann::IndexBase.
Definition at line 100 of file linear_index.h.