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


Public Types | |
| typedef Distance::ElementType | ElementType |
| typedef Distance::ResultType | DistanceType |
Public Member Functions | |
| NNIndex (Distance d) | |
| NNIndex (const IndexParams ¶ms, Distance d) | |
| NNIndex (const NNIndex &other) | |
| virtual | ~NNIndex () |
| virtual NNIndex * | clone () const =0 |
| virtual void | buildIndex () |
| virtual void | buildIndex (const Matrix< ElementType > &dataset) |
| virtual void | addPoints (const Matrix< ElementType > &points, float rebuild_threshold=2) |
| Incrementally add points to the index. More... | |
| virtual void | removePoint (size_t id) |
| virtual ElementType * | getPoint (size_t id) |
| size_t | size () const |
| size_t | veclen () const |
| IndexParams | getParameters () const |
| template<typename Archive > | |
| void | serialize (Archive &ar) |
| 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... | |
| 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 |
| virtual void | findNeighbors (ResultSet< DistanceType > &result, const ElementType *vec, const SearchParams &searchParams) const =0 |
Public Member Functions inherited from flann::IndexBase | |
| virtual | ~IndexBase () |
| virtual flann_algorithm_t | getType () const =0 |
| virtual int | usedMemory () const =0 |
| virtual void | loadIndex (FILE *stream)=0 |
| virtual void | saveIndex (FILE *stream)=0 |
Protected Member Functions | |
| virtual void | freeIndex ()=0 |
| virtual void | buildIndexImpl ()=0 |
| 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) |
Protected Attributes | |
| 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_ |
Nearest-neighbour index base class
Definition at line 73 of file nn_index.h.
| typedef Distance::ResultType flann::NNIndex< Distance >::DistanceType |
Definition at line 77 of file nn_index.h.
| typedef Distance::ElementType flann::NNIndex< Distance >::ElementType |
Definition at line 76 of file nn_index.h.
|
inline |
Definition at line 79 of file nn_index.h.
|
inline |
Definition at line 84 of file nn_index.h.
|
inline |
Definition at line 89 of file nn_index.h.
References copy, flann::NNIndex< Distance >::data_ptr_, flann::NNIndex< Distance >::points_, flann::NNIndex< Distance >::size_, and flann::NNIndex< Distance >::veclen_.
|
inlinevirtual |
Definition at line 112 of file nn_index.h.
References flann::NNIndex< Distance >::data_ptr_.
|
inlinevirtual |
Incrementally add points to the index.
| points | Matrix with points to be added |
| rebuild_threshold |
Reimplemented in flann::LshIndex< Distance >, flann::LinearIndex< Distance >, flann::KMeansIndex< Distance >, flann::KDTreeSingleIndex< Distance >, flann::KDTreeIndex< Distance >, flann::HierarchicalClusteringIndex< Distance >, flann::CompositeIndex< Distance >, and flann::AutotunedIndex< Distance >.
Definition at line 152 of file nn_index.h.
Referenced by flann::Index< Distance >::addPoints().
|
inlinevirtual |
Builds the index
Reimplemented in flann::LshIndex< Distance >, flann::KMeansIndex< Distance >, flann::KDTreeSingleIndex< Distance >, flann::KDTreeIndex< Distance >, flann::HierarchicalClusteringIndex< Distance >, flann::LshIndex< Distance >, flann::KMeansIndex< Distance >, flann::KDTreeSingleIndex< Distance >, flann::KDTreeIndex< Distance >, flann::KDTreeCuda3dIndex< Distance >, flann::HierarchicalClusteringIndex< Distance >, flann::CompositeIndex< Distance >, and flann::AutotunedIndex< Distance >.
Definition at line 125 of file nn_index.h.
References flann::NNIndex< Distance >::buildIndexImpl(), flann::NNIndex< Distance >::cleanRemovedPoints(), flann::NNIndex< Distance >::freeIndex(), flann::NNIndex< Distance >::size_, and flann::NNIndex< Distance >::size_at_build_.
Referenced by flann::Index< Distance >::buildIndex(), and flann::NNIndex< Distance >::buildIndex().
|
inlinevirtual |
Builds the index using the specified dataset
| dataset | the dataset to use |
Reimplemented in flann::AutotunedIndex< Distance >.
Definition at line 141 of file nn_index.h.
References flann::NNIndex< Distance >::buildIndex(), and flann::NNIndex< Distance >::setDataset().
|
protectedpure virtual |
Implemented in flann::LshIndex< Distance >, flann::LinearIndex< Distance >, flann::KMeansIndex< Distance >, flann::KDTreeSingleIndex< Distance >, flann::KDTreeIndex< Distance >, flann::KDTreeCuda3dIndex< Distance >, flann::HierarchicalClusteringIndex< Distance >, flann::CompositeIndex< Distance >, and flann::AutotunedIndex< Distance >.
Referenced by flann::NNIndex< Distance >::buildIndex().
|
inlineprotected |
Definition at line 782 of file nn_index.h.
References flann::NNIndex< Distance >::ids_, flann::NNIndex< Distance >::points_, flann::NNIndex< Distance >::removed_, flann::NNIndex< Distance >::removed_count_, flann::NNIndex< Distance >::removed_points_, flann::DynamicBitset::reset(), flann::DynamicBitset::resize(), flann::NNIndex< Distance >::size_, and flann::DynamicBitset::test().
Referenced by flann::NNIndex< Distance >::buildIndex().
|
pure virtual |
Implemented in flann::LshIndex< Distance >, flann::LinearIndex< Distance >, flann::KMeansIndex< Distance >, flann::KDTreeSingleIndex< Distance >, flann::KDTreeIndex< Distance >, flann::KDTreeCuda3dIndex< Distance >, flann::HierarchicalClusteringIndex< Distance >, flann::CompositeIndex< Distance >, and flann::AutotunedIndex< Distance >.
Referenced by flann::Index< Distance >::Index().
|
inlineprotected |
Definition at line 763 of file nn_index.h.
References flann::NNIndex< Distance >::ids_, flann::NNIndex< Distance >::last_id_, flann::NNIndex< Distance >::points_, flann::NNIndex< Distance >::removed_, flann::NNIndex< Distance >::removed_points_, flann::DynamicBitset::reset(), flann::DynamicBitset::resize(), flann::Matrix_::rows, and flann::NNIndex< Distance >::size_.
Referenced by flann::HierarchicalClusteringIndex< Distance >::addPoints(), flann::KDTreeIndex< Distance >::addPoints(), flann::KDTreeSingleIndex< Distance >::addPoints(), flann::KMeansIndex< Distance >::addPoints(), flann::LinearIndex< Distance >::addPoints(), and flann::LshIndex< Distance >::addPoints().
|
pure virtual |
Implemented in flann::LinearIndex< Distance >, flann::KMeansIndex< Distance >, flann::KDTreeSingleIndex< Distance >, flann::KDTreeIndex< Distance >, flann::KDTreeCuda3dIndex< Distance >, flann::HierarchicalClusteringIndex< Distance >, flann::CompositeIndex< Distance >, flann::AutotunedIndex< Distance >, and flann::LshIndex< Distance >.
Referenced by flann::NNIndex< Distance >::knnSearch(), and flann::NNIndex< Distance >::radiusSearch().
|
protectedpure virtual |
|
inlinevirtual |
Returns the parameters used by the index.
Implements flann::IndexBase.
Definition at line 219 of file nn_index.h.
References flann::NNIndex< Distance >::index_params_.
Referenced by flann::Index< Distance >::getParameters().
|
inlinevirtual |
Get point with specific id
| id |
Reimplemented in flann::KDTreeCuda3dIndex< Distance >.
Definition at line 187 of file nn_index.h.
References flann::NNIndex< Distance >::id_to_index(), NULL, and flann::NNIndex< Distance >::points_.
Referenced by flann::Index< Distance >::getPoint().
|
inlineprotected |
Definition at line 705 of file nn_index.h.
References flann::NNIndex< Distance >::ids_.
Referenced by flann::NNIndex< Distance >::getPoint(), and flann::NNIndex< Distance >::removePoint().
|
inlineprotected |
Definition at line 737 of file nn_index.h.
Referenced by flann::LshIndex< Distance >::knnSearch(), flann::NNIndex< Distance >::knnSearch(), and flann::NNIndex< Distance >::radiusSearch().
|
inline |
| queries | |
| indices | |
| dists | |
| knn | |
| params |
Definition at line 368 of file nn_index.h.
References flann::Matrix_::cols, flann::NNIndex< Distance >::knnSearch(), params, flann::Matrix< T >::ptr(), result, and flann::Matrix_::rows.
|
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 in flann::LshIndex< Distance >, and flann::AutotunedIndex< Distance >.
Definition at line 305 of file nn_index.h.
References flann::KNNSimpleResultSet< DistanceType >::clear(), flann::KNNResultSet2< DistanceType >::clear(), flann::Matrix_::cols, flann::KNNSimpleResultSet< DistanceType >::copy(), flann::KNNResultSet2< DistanceType >::copy(), count, flann::NNIndex< Distance >::findNeighbors(), flann::FLANN_True, flann::FLANN_Undefined, flann::NNIndex< Distance >::indices_to_ids(), KNN_HEAP_THRESHOLD, min(), params, flann::Matrix_::rows, flann::KNNSimpleResultSet< DistanceType >::size(), flann::KNNResultSet2< DistanceType >::size(), and flann::NNIndex< Distance >::veclen().
Referenced by flann::NNIndex< Distance >::knnSearch(), and flann::Index< Distance >::knnSearch().
|
inline |
| queries | |
| indices | |
| dists | |
| knn | |
| params |
Definition at line 466 of file nn_index.h.
References flann::NNIndex< Distance >::knnSearch(), params, and result.
|
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 395 of file nn_index.h.
References flann::KNNSimpleResultSet< DistanceType >::clear(), flann::KNNResultSet2< DistanceType >::clear(), flann::Matrix_::cols, flann::KNNSimpleResultSet< DistanceType >::copy(), flann::KNNResultSet2< DistanceType >::copy(), count, flann::NNIndex< Distance >::findNeighbors(), flann::FLANN_True, flann::FLANN_Undefined, flann::NNIndex< Distance >::indices_to_ids(), KNN_HEAP_THRESHOLD, min(), params, flann::Matrix_::rows, flann::KNNSimpleResultSet< DistanceType >::size(), flann::KNNResultSet2< DistanceType >::size(), and flann::NNIndex< Distance >::veclen().
|
inline |
| queries | |
| indices | |
| dists | |
| radius | |
| params |
Definition at line 574 of file nn_index.h.
References flann::Matrix_::cols, params, flann::Matrix< T >::ptr(), flann::NNIndex< Distance >::radiusSearch(), result, and flann::Matrix_::rows.
|
inline |
Perform radius search.
| [in] | query | The query point |
| [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 491 of file nn_index.h.
References flann::RadiusResultSet< DistanceType >::clear(), flann::KNNRadiusResultSet< DistanceType >::clear(), flann::CountRadiusResultSet< DistanceType >::clear(), flann::Matrix_::cols, flann::RadiusResultSet< DistanceType >::copy(), flann::KNNRadiusResultSet< DistanceType >::copy(), count, flann::NNIndex< Distance >::findNeighbors(), flann::NNIndex< Distance >::indices_to_ids(), infinity(), min(), params, flann::Matrix_::rows, flann::NNIndex< Distance >::size(), flann::RadiusResultSet< DistanceType >::size(), flann::KNNRadiusResultSet< DistanceType >::size(), flann::CountRadiusResultSet< DistanceType >::size(), and flann::NNIndex< Distance >::veclen().
Referenced by flann::NNIndex< Distance >::radiusSearch(), and flann::Index< Distance >::radiusSearch().
|
inline |
| queries | |
| indices | |
| dists | |
| radius | |
| params |
Definition at line 680 of file nn_index.h.
References params, flann::NNIndex< Distance >::radiusSearch(), and result.
|
inline |
Perform radius search.
| [in] | query | The query point |
| [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 601 of file nn_index.h.
References flann::RadiusResultSet< DistanceType >::clear(), flann::KNNRadiusResultSet< DistanceType >::clear(), flann::CountRadiusResultSet< DistanceType >::clear(), flann::Matrix_::cols, flann::RadiusResultSet< DistanceType >::copy(), flann::KNNRadiusResultSet< DistanceType >::copy(), count, flann::NNIndex< Distance >::findNeighbors(), flann::NNIndex< Distance >::indices_to_ids(), params, flann::Matrix_::rows, flann::RadiusResultSet< DistanceType >::size(), flann::KNNRadiusResultSet< DistanceType >::size(), flann::CountRadiusResultSet< DistanceType >::size(), and flann::NNIndex< Distance >::veclen().
|
inlinevirtual |
Remove point from the index
| index | Index of point to be removed |
Reimplemented in flann::KDTreeCuda3dIndex< Distance >, flann::CompositeIndex< Distance >, and flann::AutotunedIndex< Distance >.
Definition at line 161 of file nn_index.h.
References flann::NNIndex< Distance >::id_to_index(), flann::NNIndex< Distance >::ids_, flann::NNIndex< Distance >::last_id_, flann::NNIndex< Distance >::removed_, flann::NNIndex< Distance >::removed_count_, flann::NNIndex< Distance >::removed_points_, flann::DynamicBitset::reset(), flann::DynamicBitset::resize(), flann::DynamicBitset::set(), flann::NNIndex< Distance >::size_, and flann::DynamicBitset::test().
Referenced by flann::Index< Distance >::removePoint().
|
inline |
Definition at line 226 of file nn_index.h.
References flann::IndexHeaderStruct::cols, flann::NNIndex< Distance >::data_ptr_, flann::IndexHeaderStruct::data_type, FLANN_SIGNATURE_, flann::get_param(), flann::IndexBase::getType(), flann::IndexHeader::h, flann::NNIndex< Distance >::ids_, flann::NNIndex< Distance >::index_params_, flann::IndexHeaderStruct::index_type, flann::NNIndex< Distance >::last_id_, flann::serialization::make_binary_object(), flann::NNIndex< Distance >::points_, flann::NNIndex< Distance >::removed_, flann::NNIndex< Distance >::removed_count_, flann::NNIndex< Distance >::removed_points_, flann::IndexHeaderStruct::rows, flann::IndexHeaderStruct::signature, flann::NNIndex< Distance >::size_, flann::NNIndex< Distance >::size_at_build_, and flann::NNIndex< Distance >::veclen_.
|
inlineprotected |
Definition at line 746 of file nn_index.h.
References flann::DynamicBitset::clear(), flann::Matrix_::cols, flann::NNIndex< Distance >::ids_, flann::NNIndex< Distance >::last_id_, flann::NNIndex< Distance >::points_, flann::NNIndex< Distance >::removed_, flann::NNIndex< Distance >::removed_count_, flann::NNIndex< Distance >::removed_points_, flann::Matrix_::rows, flann::NNIndex< Distance >::size_, and flann::NNIndex< Distance >::veclen_.
Referenced by flann::NNIndex< Distance >::buildIndex(), flann::HierarchicalClusteringIndex< Distance >::HierarchicalClusteringIndex(), flann::KDTreeIndex< Distance >::KDTreeIndex(), flann::KDTreeSingleIndex< Distance >::KDTreeSingleIndex(), flann::KMeansIndex< Distance >::KMeansIndex(), flann::LinearIndex< Distance >::LinearIndex(), and flann::LshIndex< Distance >::LshIndex().
|
inlinevirtual |
Implements flann::IndexBase.
Definition at line 201 of file nn_index.h.
References flann::NNIndex< Distance >::removed_count_, and flann::NNIndex< Distance >::size_.
Referenced by flann::NNIndex< Distance >::radiusSearch(), and flann::Index< Distance >::size().
|
inlineprotected |
Definition at line 802 of file nn_index.h.
References flann::NNIndex< Distance >::data_ptr_, flann::NNIndex< Distance >::distance_, flann::NNIndex< Distance >::ids_, flann::NNIndex< Distance >::index_params_, flann::NNIndex< Distance >::last_id_, flann::NNIndex< Distance >::points_, flann::NNIndex< Distance >::removed_, flann::NNIndex< Distance >::removed_count_, flann::NNIndex< Distance >::removed_points_, flann::NNIndex< Distance >::size_, flann::NNIndex< Distance >::size_at_build_, std::swap(), and flann::NNIndex< Distance >::veclen_.
Referenced by flann::LinearIndex< Distance >::operator=().
|
inlinevirtual |
Implements flann::IndexBase.
Definition at line 209 of file nn_index.h.
References flann::NNIndex< Distance >::veclen_.
Referenced by flann::NNIndex< Distance >::knnSearch(), flann::NNIndex< Distance >::radiusSearch(), and flann::Index< Distance >::veclen().
|
protected |
Pointer to dataset memory if allocated by this index, otherwise NULL
Definition at line 881 of file nn_index.h.
Referenced by flann::NNIndex< Distance >::NNIndex(), flann::NNIndex< Distance >::serialize(), flann::NNIndex< Distance >::swap(), and flann::NNIndex< Distance >::~NNIndex().
|
protected |
The distance functor
Definition at line 823 of file nn_index.h.
Referenced by flann::KMeansIndex< Distance >::addPoints(), flann::AutotunedIndex< Distance >::buildIndex(), flann::LinearIndex< Distance >::findNeighbors(), flann::HierarchicalClusteringIndex< Distance >::initCenterChooser(), flann::KMeansIndex< Distance >::initCenterChooser(), flann::AutotunedIndex< Distance >::loadIndex(), and flann::NNIndex< Distance >::swap().
|
protected |
Array of point IDs, returned by nearest-neighbour operations
Definition at line 871 of file nn_index.h.
Referenced by flann::NNIndex< Distance >::cleanRemovedPoints(), flann::NNIndex< Distance >::extendDataset(), flann::NNIndex< Distance >::id_to_index(), flann::NNIndex< Distance >::removePoint(), flann::NNIndex< Distance >::serialize(), flann::NNIndex< Distance >::setDataset(), and flann::NNIndex< Distance >::swap().
|
protected |
Parameters of the index.
Definition at line 851 of file nn_index.h.
Referenced by flann::NNIndex< Distance >::getParameters(), flann::HierarchicalClusteringIndex< Distance >::HierarchicalClusteringIndex(), flann::KDTreeIndex< Distance >::KDTreeIndex(), flann::LshIndex< Distance >::LshIndex(), flann::AutotunedIndex< Distance >::serialize(), flann::HierarchicalClusteringIndex< Distance >::serialize(), flann::KDTreeIndex< Distance >::serialize(), flann::KDTreeSingleIndex< Distance >::serialize(), flann::KMeansIndex< Distance >::serialize(), flann::LinearIndex< Distance >::serialize(), flann::LshIndex< Distance >::serialize(), flann::NNIndex< Distance >::serialize(), and flann::NNIndex< Distance >::swap().
|
protected |
Each index point has an associated ID. IDs are assigned sequentially in increasing order. This indicates the ID assigned to the last point added to the index.
Definition at line 831 of file nn_index.h.
Referenced by flann::NNIndex< Distance >::extendDataset(), flann::NNIndex< Distance >::removePoint(), flann::NNIndex< Distance >::serialize(), flann::NNIndex< Distance >::setDataset(), and flann::NNIndex< Distance >::swap().
|
protected |
Point data
Definition at line 876 of file nn_index.h.
Referenced by flann::LshIndex< Distance >::addPoints(), flann::KDTreeSingleIndex< Distance >::buildIndexImpl(), flann::LshIndex< Distance >::buildIndexImpl(), flann::NNIndex< Distance >::cleanRemovedPoints(), flann::NNIndex< Distance >::extendDataset(), flann::LinearIndex< Distance >::findNeighbors(), flann::NNIndex< Distance >::getPoint(), flann::HierarchicalClusteringIndex< Distance >::initCenterChooser(), flann::KMeansIndex< Distance >::initCenterChooser(), flann::NNIndex< Distance >::NNIndex(), flann::NNIndex< Distance >::serialize(), flann::NNIndex< Distance >::setDataset(), and flann::NNIndex< Distance >::swap().
|
protected |
Flag indicating if at least a point was removed from the index
Definition at line 856 of file nn_index.h.
Referenced by flann::NNIndex< Distance >::cleanRemovedPoints(), flann::NNIndex< Distance >::extendDataset(), flann::HierarchicalClusteringIndex< Distance >::findNeighbors(), flann::KDTreeIndex< Distance >::findNeighbors(), flann::KDTreeSingleIndex< Distance >::findNeighbors(), flann::KMeansIndex< Distance >::findNeighbors(), flann::LinearIndex< Distance >::findNeighbors(), flann::NNIndex< Distance >::removePoint(), flann::NNIndex< Distance >::serialize(), flann::NNIndex< Distance >::setDataset(), and flann::NNIndex< Distance >::swap().
|
protected |
Number of points removed from the index
Definition at line 866 of file nn_index.h.
Referenced by flann::NNIndex< Distance >::cleanRemovedPoints(), flann::NNIndex< Distance >::removePoint(), flann::NNIndex< Distance >::serialize(), flann::NNIndex< Distance >::setDataset(), flann::NNIndex< Distance >::size(), and flann::NNIndex< Distance >::swap().
|
protected |
Array used to mark points removed from the index
Definition at line 861 of file nn_index.h.
Referenced by flann::NNIndex< Distance >::cleanRemovedPoints(), flann::NNIndex< Distance >::extendDataset(), flann::LinearIndex< Distance >::findNeighbors(), flann::NNIndex< Distance >::removePoint(), flann::NNIndex< Distance >::serialize(), flann::NNIndex< Distance >::setDataset(), and flann::NNIndex< Distance >::swap().
|
protected |
Number of points in the index (and database)
Definition at line 836 of file nn_index.h.
Referenced by flann::HierarchicalClusteringIndex< Distance >::addPoints(), flann::KDTreeIndex< Distance >::addPoints(), flann::KMeansIndex< Distance >::addPoints(), flann::LshIndex< Distance >::addPoints(), flann::KDTreeCuda3dIndex< Distance >::buildIndex(), flann::NNIndex< Distance >::buildIndex(), flann::HierarchicalClusteringIndex< Distance >::buildIndexImpl(), flann::KDTreeIndex< Distance >::buildIndexImpl(), flann::KDTreeSingleIndex< Distance >::buildIndexImpl(), flann::KMeansIndex< Distance >::buildIndexImpl(), flann::NNIndex< Distance >::cleanRemovedPoints(), flann::NNIndex< Distance >::extendDataset(), flann::KDTreeCuda3dIndex< Distance >::KDTreeCuda3dIndex(), flann::KDTreeSingleIndex< Distance >::KDTreeSingleIndex(), flann::NNIndex< Distance >::NNIndex(), flann::NNIndex< Distance >::removePoint(), flann::NNIndex< Distance >::serialize(), flann::NNIndex< Distance >::setDataset(), flann::NNIndex< Distance >::size(), flann::NNIndex< Distance >::swap(), flann::KDTreeIndex< Distance >::usedMemory(), flann::KDTreeSingleIndex< Distance >::usedMemory(), and flann::LshIndex< Distance >::usedMemory().
|
protected |
Number of features in the dataset when the index was last built.
Definition at line 841 of file nn_index.h.
Referenced by flann::HierarchicalClusteringIndex< Distance >::addPoints(), flann::KDTreeIndex< Distance >::addPoints(), flann::KMeansIndex< Distance >::addPoints(), flann::LshIndex< Distance >::addPoints(), flann::NNIndex< Distance >::buildIndex(), flann::NNIndex< Distance >::serialize(), and flann::NNIndex< Distance >::swap().
|
protected |
Size of one point in the index (and database)
Definition at line 846 of file nn_index.h.
Referenced by flann::HierarchicalClusteringIndex< Distance >::addPoints(), flann::KDTreeIndex< Distance >::addPoints(), flann::KDTreeSingleIndex< Distance >::addPoints(), flann::KMeansIndex< Distance >::addPoints(), flann::LinearIndex< Distance >::addPoints(), flann::LshIndex< Distance >::addPoints(), flann::HierarchicalClusteringIndex< Distance >::buildIndexImpl(), flann::KDTreeIndex< Distance >::buildIndexImpl(), flann::KDTreeSingleIndex< Distance >::buildIndexImpl(), flann::KMeansIndex< Distance >::buildIndexImpl(), flann::LshIndex< Distance >::buildIndexImpl(), flann::KDTreeSingleIndex< Distance >::findNeighbors(), flann::LinearIndex< Distance >::findNeighbors(), flann::KMeansIndex< Distance >::getClusterCenters(), flann::HierarchicalClusteringIndex< Distance >::HierarchicalClusteringIndex(), flann::KDTreeSingleIndex< Distance >::KDTreeSingleIndex(), flann::LshIndex< Distance >::knnSearch(), flann::NNIndex< Distance >::NNIndex(), flann::NNIndex< Distance >::serialize(), flann::NNIndex< Distance >::setDataset(), flann::NNIndex< Distance >::swap(), and flann::NNIndex< Distance >::veclen().