![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
#include <autotuned_index.h>


Public Types | |
| typedef Distance::ElementType | ElementType |
| typedef Distance::ResultType | DistanceType |
| typedef NNIndex< Distance > | BaseClass |
| typedef AutotunedIndex< Distance > | IndexType |
| typedef bool | needs_kdtree_distance |
Public Types inherited from flann::NNIndex< Distance > | |
| typedef Distance::ElementType | ElementType |
| typedef Distance::ResultType | DistanceType |
Public Member Functions | |
| AutotunedIndex (const Matrix< ElementType > &inputData, const IndexParams ¶ms=AutotunedIndexParams(), Distance d=Distance()) | |
| AutotunedIndex (const IndexParams ¶ms=AutotunedIndexParams(), Distance d=Distance()) | |
| AutotunedIndex (const AutotunedIndex &other) | |
| AutotunedIndex & | operator= (AutotunedIndex other) |
| virtual | ~AutotunedIndex () |
| BaseClass * | clone () const |
| void | buildIndex () |
| void | buildIndex (const Matrix< ElementType > &dataset) |
| void | addPoints (const Matrix< ElementType > &points, float rebuild_threshold=2) |
| Incrementally add points to the index. More... | |
| void | removePoint (size_t id) |
| template<typename Archive > | |
| void | serialize (Archive &ar) |
| void | saveIndex (FILE *stream) |
| void | loadIndex (FILE *stream) |
| 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, std::vector< std::vector< size_t > > &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, DistanceType radius, const SearchParams ¶ms) const |
| int | radiusSearch (const Matrix< ElementType > &queries, std::vector< std::vector< size_t > > &indices, std::vector< std::vector< DistanceType > > &dists, DistanceType radius, const SearchParams ¶ms) const |
| void | findNeighbors (ResultSet< DistanceType > &result, const ElementType *vec, const SearchParams &searchParams) const |
| IndexParams | getParameters () const |
| FLANN_DEPRECATED SearchParams | getSearchParameters () const |
| FLANN_DEPRECATED float | getSpeedup () const |
| size_t | size () const |
| size_t | veclen () const |
| int | usedMemory () const |
| flann_algorithm_t | getType () const |
Public Member Functions inherited from flann::NNIndex< Distance > | |
| NNIndex (Distance d) | |
| NNIndex (const IndexParams ¶ms, Distance d) | |
| NNIndex (const NNIndex &other) | |
| virtual | ~NNIndex () |
| virtual ElementType * | getPoint (size_t id) |
| size_t | size () const |
| size_t | veclen () const |
| IndexParams | getParameters () const |
| template<typename Archive > | |
| void | serialize (Archive &ar) |
| 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 |
Public Member Functions inherited from flann::IndexBase | |
| virtual | ~IndexBase () |
Protected Member Functions | |
| void | buildIndexImpl () |
| void | freeIndex () |
Protected Member Functions inherited from flann::NNIndex< Distance > | |
| 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 | extendDataset (const Matrix< ElementType > &new_points) |
| void | cleanRemovedPoints () |
| void | swap (NNIndex &other) |
Additional Inherited Members | |
Protected Attributes inherited from flann::NNIndex< Distance > | |
| Distance | distance_ |
| size_t | last_id_ |
| size_t | size_ |
| size_t | size_at_build_ |
| size_t | veclen_ |
| IndexParams | index_params_ |
| bool | removed_ |
| DynamicBitset | removed_points_ |
| size_t | removed_count_ |
| std::vector< size_t > | ids_ |
| std::vector< ElementType * > | points_ |
| ElementType * | data_ptr_ |
Definition at line 73 of file autotuned_index.h.
| typedef NNIndex<Distance> flann::AutotunedIndex< Distance >::BaseClass |
Definition at line 79 of file autotuned_index.h.
| typedef Distance::ResultType flann::AutotunedIndex< Distance >::DistanceType |
Definition at line 77 of file autotuned_index.h.
| typedef Distance::ElementType flann::AutotunedIndex< Distance >::ElementType |
Definition at line 76 of file autotuned_index.h.
| typedef AutotunedIndex<Distance> flann::AutotunedIndex< Distance >::IndexType |
Definition at line 81 of file autotuned_index.h.
| typedef bool flann::AutotunedIndex< Distance >::needs_kdtree_distance |
Definition at line 83 of file autotuned_index.h.
|
inline |
Definition at line 85 of file autotuned_index.h.
References flann::get_param(), and params.
Referenced by flann::AutotunedIndex< Distance >::clone().
|
inline |
Definition at line 94 of file autotuned_index.h.
References flann::get_param(), and params.
|
inline |
Definition at line 103 of file autotuned_index.h.
|
inlinevirtual |
Definition at line 122 of file autotuned_index.h.
|
inlinevirtual |
Incrementally add points to the index.
| points | Matrix with points to be added |
| rebuild_threshold |
Reimplemented from flann::NNIndex< Distance >.
Definition at line 164 of file autotuned_index.h.
References points.
|
inlinevirtual |
Method responsible with building the index.
Reimplemented from flann::NNIndex< Distance >.
Definition at line 135 of file autotuned_index.h.
References flann::create_index_by_type(), flann::NNIndex< Distance >::distance_, FLANN_LOG_INFO, flann::Logger::getLevel(), flann::Logger::info(), and flann::print_params().
Referenced by flann::AutotunedIndex< Distance >::buildIndex().
|
inlinevirtual |
Builds the index using the specified dataset
| dataset | the dataset to use |
Reimplemented from flann::NNIndex< Distance >.
Definition at line 157 of file autotuned_index.h.
References flann::AutotunedIndex< Distance >::buildIndex().
|
inlineprotectedvirtual |
Implements flann::NNIndex< Distance >.
Definition at line 357 of file autotuned_index.h.
|
inlinevirtual |
Implements flann::NNIndex< Distance >.
Definition at line 127 of file autotuned_index.h.
References flann::AutotunedIndex< Distance >::AutotunedIndex().
|
inlinevirtual |
Method that searches for nearest-neighbors
Implements flann::NNIndex< Distance >.
Definition at line 302 of file autotuned_index.h.
|
inlineprotectedvirtual |
Implements flann::NNIndex< Distance >.
Definition at line 362 of file autotuned_index.h.
|
inlinevirtual |
Implements flann::IndexBase.
Definition at line 308 of file autotuned_index.h.
|
inline |
Definition at line 313 of file autotuned_index.h.
|
inline |
Definition at line 318 of file autotuned_index.h.
|
inlinevirtual |
Algorithm name
Implements flann::IndexBase.
Definition at line 351 of file autotuned_index.h.
References FLANN_INDEX_AUTOTUNED.
Referenced by flann::AutotunedIndex< Distance >::serialize().
|
inlinevirtual |
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 |
Reimplemented from flann::NNIndex< Distance >.
Definition at line 232 of file autotuned_index.h.
References flann::SearchParams::checks, FLANN_CHECKS_AUTOTUNED, and params.
|
inline |
Definition at line 248 of file autotuned_index.h.
References flann::SearchParams::checks, FLANN_CHECKS_AUTOTUNED, and params.
|
inlinevirtual |
Implements flann::IndexBase.
Definition at line 219 of file autotuned_index.h.
References flann::NNIndex< Distance >::distance_, and params.
|
inline |
Definition at line 116 of file autotuned_index.h.
|
inline |
Definition at line 265 of file autotuned_index.h.
References flann::SearchParams::checks, FLANN_CHECKS_AUTOTUNED, and params.
|
inline |
Definition at line 281 of file autotuned_index.h.
References flann::SearchParams::checks, FLANN_CHECKS_AUTOTUNED, and params.
|
inlinevirtual |
Remove point from the index
| index | Index of point to be removed |
Reimplemented from flann::NNIndex< Distance >.
Definition at line 171 of file autotuned_index.h.
|
inlinevirtual |
Implements flann::IndexBase.
Definition at line 209 of file autotuned_index.h.
|
inline |
Definition at line 180 of file autotuned_index.h.
References flann::SearchParams::checks, flann::AutotunedIndex< Distance >::getType(), and flann::NNIndex< Distance >::index_params_.
|
inlinevirtual |
Number of features in this index.
Implements flann::IndexBase.
Definition at line 327 of file autotuned_index.h.
|
inlinevirtual |
The amount of memory (in bytes) this index uses.
Implements flann::IndexBase.
Definition at line 343 of file autotuned_index.h.
|
inlinevirtual |
The length of each vector in this index.
Implements flann::IndexBase.
Definition at line 335 of file autotuned_index.h.