#include <linear_index.h>

Public Types | |
| typedef NNIndex< Distance > | BaseClass |
| typedef Distance::ResultType | DistanceType |
| typedef Distance::ElementType | ElementType |
Public Types inherited from rtflann::NNIndex< Distance > | |
| 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. More... | |
| 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 () |
Public Member Functions inherited from rtflann::NNIndex< Distance > | |
| virtual void | buildIndex () |
| virtual void | buildIndex (const Matrix< ElementType > &dataset) |
| IndexParams | getParameters () const |
| virtual ElementType * | getPoint (size_t id) |
| virtual int | knnSearch (const Matrix< ElementType > &queries, Matrix< size_t > &indices, Matrix< DistanceType > &dists, size_t knn, const SearchParams ¶ms) const |
| Perform k-nearest neighbor search. More... | |
| virtual int | knnSearch (const Matrix< ElementType > &queries, std::vector< std::vector< size_t > > &indices, std::vector< std::vector< DistanceType > > &dists, size_t knn, const SearchParams ¶ms) const |
| Perform k-nearest neighbor search. More... | |
| int | knnSearch (const Matrix< ElementType > &queries, std::vector< std::vector< int > > &indices, std::vector< std::vector< DistanceType > > &dists, size_t knn, const SearchParams ¶ms) const |
| NNIndex (Distance d) | |
| NNIndex (const IndexParams ¶ms, Distance d) | |
| NNIndex (const NNIndex &other) | |
| virtual int | radiusSearch (const Matrix< ElementType > &queries, Matrix< size_t > &indices, Matrix< DistanceType > &dists, float radius, const SearchParams ¶ms) const |
| Perform radius search. More... | |
| int | radiusSearch (const Matrix< ElementType > &queries, Matrix< int > &indices, Matrix< DistanceType > &dists, float radius, const SearchParams ¶ms) const |
| virtual int | radiusSearch (const Matrix< ElementType > &queries, std::vector< std::vector< size_t > > &indices, std::vector< std::vector< DistanceType > > &dists, float radius, const SearchParams ¶ms) const |
| Perform radius search. More... | |
| int | radiusSearch (const Matrix< ElementType > &queries, std::vector< std::vector< int > > &indices, std::vector< std::vector< DistanceType > > &dists, float radius, const SearchParams ¶ms) const |
| size_t | removedCount () const |
| virtual void | removePoint (size_t id) |
| template<typename Archive > | |
| void | serialize (Archive &ar) |
| size_t | size () const |
| size_t | sizeAtBuild () const |
| size_t | veclen () const |
| virtual | ~NNIndex () |
Public Member Functions inherited from rtflann::IndexBase | |
| virtual | ~IndexBase () |
Protected Member Functions | |
| void | buildIndexImpl () |
| void | freeIndex () |
Protected Member Functions inherited from rtflann::NNIndex< Distance > | |
| void | cleanRemovedPoints () |
| void | extendDataset (const Matrix< ElementType > &new_points) |
| size_t | id_to_index (size_t id) |
| void | indices_to_ids (const size_t *in, size_t *out, size_t size) const |
| void | setDataset (const Matrix< ElementType > &dataset) |
| void | swap (NNIndex &other) |
Additional Inherited Members | |
Protected Attributes inherited from rtflann::NNIndex< Distance > | |
| ElementType * | data_ptr_ |
| Distance | distance_ |
| std::vector< size_t > | ids_ |
| IndexParams | index_params_ |
| size_t | last_id_ |
| std::vector< ElementType * > | points_ |
| bool | removed_ |
| size_t | removed_count_ |
| DynamicBitset | removed_points_ |
| size_t | size_ |
| size_t | size_at_build_ |
| size_t | veclen_ |
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 |
Definition at line 54 of file linear_index.h.
| typedef Distance::ElementType rtflann::LinearIndex< Distance >::ElementType |
Definition at line 53 of file linear_index.h.
|
inline |
Definition at line 58 of file linear_index.h.
|
inline |
Definition at line 63 of file linear_index.h.
|
inline |
Definition at line 69 of file linear_index.h.
|
inlinevirtual |
Definition at line 79 of file linear_index.h.
|
inlinevirtual |
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.
|
inlineprotectedvirtual |
Implements rtflann::NNIndex< Distance >.
Definition at line 146 of file linear_index.h.
|
inlinevirtual |
Implements rtflann::NNIndex< Distance >.
Definition at line 83 of file linear_index.h.
|
inlinevirtual |
Implements rtflann::NNIndex< Distance >.
Definition at line 129 of file linear_index.h.
|
inlineprotectedvirtual |
Implements rtflann::NNIndex< Distance >.
Definition at line 151 of file linear_index.h.
|
inlinevirtual |
Implements rtflann::IndexBase.
Definition at line 94 of file linear_index.h.
|
inlinevirtual |
Implements rtflann::IndexBase.
Definition at line 123 of file linear_index.h.
|
inline |
Definition at line 73 of file linear_index.h.
|
inlinevirtual |
Implements rtflann::IndexBase.
Definition at line 117 of file linear_index.h.
|
inline |
Definition at line 106 of file linear_index.h.
|
inlinevirtual |
Implements rtflann::IndexBase.
Definition at line 100 of file linear_index.h.