![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
#include <flann.hpp>
Public Types | |
| typedef Distance::ElementType | ElementType |
| typedef Distance::ResultType | DistanceType |
| typedef NNIndex< Distance > | IndexType |
Public Member Functions | |
| Index (const IndexParams ¶ms, Distance distance=Distance()) | |
| Index (const Matrix< ElementType > &features, const IndexParams ¶ms, Distance distance=Distance()) | |
| Index (const Index &other) | |
| Index & | operator= (Index other) |
| virtual | ~Index () |
| void | buildIndex () |
| void | buildIndex (const Matrix< ElementType > &points) |
| void | addPoints (const Matrix< ElementType > &points, float rebuild_threshold=2) |
| void | removePoint (size_t point_id) |
| ElementType * | getPoint (size_t point_id) |
| void | save (std::string filename) |
| size_t | veclen () const |
| size_t | size () const |
| flann_algorithm_t | getType () const |
| int | usedMemory () const |
| IndexParams | getParameters () const |
| 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... | |
| int | knnSearch (const Matrix< ElementType > &queries, Matrix< int > &indices, Matrix< DistanceType > &dists, size_t knn, const SearchParams ¶ms) const |
| 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 |
| 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 |
| 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 |
| typedef Distance::ResultType flann::Index< Distance >::DistanceType |
| typedef Distance::ElementType flann::Index< Distance >::ElementType |
| typedef NNIndex<Distance> flann::Index< Distance >::IndexType |
|
inline |
Definition at line 83 of file flann.hpp.
References FLANN_INDEX_SAVED, and params.
|
inline |
Definition at line 101 of file flann.hpp.
References FLANN_INDEX_SAVED, and params.
|
inline |
Definition at line 118 of file flann.hpp.
References flann::NNIndex< Distance >::clone().
|
inlinevirtual |
|
inline |
Definition at line 149 of file flann.hpp.
References flann::NNIndex< Distance >::addPoints(), and points.
Referenced by __flann_add_points().
|
inline |
Builds the index.
Definition at line 137 of file flann.hpp.
References flann::NNIndex< Distance >::buildIndex().
Referenced by __flann_build_index(), __flann_find_nearest_neighbors(), flann::mpi::Index< Distance >::buildIndex(), and BuildKDTree().
|
inline |
Definition at line 144 of file flann.hpp.
References flann::NNIndex< Distance >::buildIndex(), and points.
|
inline |
Definition at line 223 of file flann.hpp.
References flann::NNIndex< Distance >::getParameters().
Referenced by __flann_build_index(), and flann::mpi::Index< Distance >::getIndexParameters().
|
inline |
Returns pointer to a data point with the specified id.
| point_id | the id of point to retrieve |
Definition at line 168 of file flann.hpp.
References flann::NNIndex< Distance >::getPoint().
Referenced by __flann_get_point().
|
inline |
Definition at line 206 of file flann.hpp.
References flann::IndexBase::getType().
Referenced by flann::save_header().
|
inline |
| queries | |
| indices | |
| dists | |
| knn | |
| params |
Definition at line 254 of file flann.hpp.
References flann::NNIndex< Distance >::knnSearch(), and params.
|
inline |
Perform k-nearest neighbor search.
| [in] | queries | The query points for which to find the nearest neighbors |
| [out] | indices | The indices of the nearest neighbors found |
| [out] | dists | Distances to the nearest neighbors found |
| [in] | knn | Number of nearest neighbors to return |
| [in] | params | Search parameters |
Definition at line 236 of file flann.hpp.
References flann::NNIndex< Distance >::knnSearch(), and params.
Referenced by __flann_find_nearest_neighbors(), __flann_find_nearest_neighbors_index(), flann::search_with_ground_truth(), and SearchKDTree().
|
inline |
| queries | |
| indices | |
| dists | |
| knn | |
| params |
Definition at line 289 of file flann.hpp.
References flann::NNIndex< Distance >::knnSearch(), and params.
|
inline |
Perform k-nearest neighbor search.
| [in] | queries | The query points for which to find the nearest neighbors |
| [out] | indices | The indices of the nearest neighbors found |
| [out] | dists | Distances to the nearest neighbors found |
| [in] | knn | Number of nearest neighbors to return |
| [in] | params | Search parameters |
Definition at line 271 of file flann.hpp.
References flann::NNIndex< Distance >::knnSearch(), and params.
|
inline |
|
inline |
| queries | |
| indices | |
| dists | |
| radius | |
| params |
Definition at line 325 of file flann.hpp.
References params, and flann::NNIndex< Distance >::radiusSearch().
|
inline |
Perform radius search.
| [in] | queries | The query points |
| [out] | indices | The indices of the neighbors found within the given radius |
| [out] | dists | The distances to the nearest neighbors found |
| [in] | radius | The radius used for search |
| [in] | params | Search parameters |
Definition at line 307 of file flann.hpp.
References params, and flann::NNIndex< Distance >::radiusSearch().
Referenced by __flann_radius_search().
|
inline |
| queries | |
| indices | |
| dists | |
| radius | |
| params |
Definition at line 361 of file flann.hpp.
References params, and flann::NNIndex< Distance >::radiusSearch().
|
inline |
Perform radius search.
| [in] | queries | The query points |
| [out] | indices | The indices of the neighbors found within the given radius |
| [out] | dists | The distances to the nearest neighbors found |
| [in] | radius | The radius used for search |
| [in] | params | Search parameters |
Definition at line 343 of file flann.hpp.
References params, and flann::NNIndex< Distance >::radiusSearch().
|
inline |
Remove point from the index
| index | Index of point to be removed |
Definition at line 158 of file flann.hpp.
References flann::NNIndex< Distance >::removePoint().
Referenced by __flann_remove_point().
|
inline |
Save index to file
| filename |
Definition at line 177 of file flann.hpp.
References filename, NULL, and flann::IndexBase::saveIndex().
Referenced by __flann_save_index().
|
inline |
Definition at line 198 of file flann.hpp.
References flann::NNIndex< Distance >::size().
Referenced by __flann_size(), and flann::save_header().
|
inline |
Definition at line 214 of file flann.hpp.
References flann::IndexBase::usedMemory().
Referenced by __flann_used_memory().
|
inline |
Definition at line 190 of file flann.hpp.
References flann::NNIndex< Distance >::veclen().
Referenced by __flann_find_nearest_neighbors(), __flann_find_nearest_neighbors_index(), __flann_radius_search(), __flann_veclen(), flann::save_header(), and flann::mpi::Index< Distance >::veclen().