Go to the documentation of this file.
31 #ifndef RTABMAP_FLANN_LINEAR_INDEX_H_
32 #define RTABMAP_FLANN_LINEAR_INDEX_H_
48 template <
typename Distance>
49 class LinearIndex :
public NNIndex<Distance>
105 template<
typename Archive>
112 if (Archive::is_loading::value) {
139 for (
size_t i = 0;
i <
points_.size(); ++
i) {
163 #endif // FLANN_LINEAR_INDEX_H_
void findNeighbors(ResultSet< DistanceType > &resultSet, const ElementType *vec, const SearchParams &) const
LinearIndex(const IndexParams ¶ms=LinearIndexParams(), Distance d=Distance())
std::vector< ElementType * > points_
NNIndex< Distance > BaseClass
void saveIndex(FILE *stream)
bool test(size_t index) const
void addPoints(const Matrix< ElementType > &points, float rebuild_threshold=2)
Incrementally add points to the index.
DynamicBitset removed_points_
virtual void addPoint(DistanceType dist, size_t index)=0
flann_algorithm_t getType() const
void setDataset(const Matrix< ElementType > &dataset)
SmartProjectionParams params(gtsam::HESSIAN, gtsam::ZERO_ON_DEGENERACY)
void serialize(Archive &ar)
Distance::ResultType DistanceType
void swap(NNIndex &other)
void loadIndex(FILE *stream)
std::map< std::string, any > IndexParams
#define USING_BASECLASS_SYMBOLS
Distance::ElementType ElementType
LinearIndex & operator=(LinearIndex other)
void extendDataset(const Matrix< ElementType > &new_points)
IndexParams index_params_
BaseClass * clone() const
rtabmap
Author(s): Mathieu Labbe
autogenerated on Thu Jul 25 2024 02:50:11