![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
#include <knncpp.h>
Public Types | |
| typedef Eigen::Matrix< Scalar, Eigen::Dynamic, Eigen::Dynamic > | Matrix |
| typedef Eigen::Matrix< Scalar, Eigen::Dynamic, 1 > | Vector |
| typedef knncpp::Matrixi | Matrixi |
Public Member Functions | |
| MultiIndexHashing () | |
| MultiIndexHashing (const Matrix &data, const bool copy=false) | |
| void | setMaxDistance (const Scalar maxDist) |
| void | setSorted (const bool sorted) |
| void | setThreads (const unsigned int threads) |
| void | setSubstringLength (const Index len) |
| void | setData (const Matrix &data, const bool copy=false) |
| void | build () |
| template<typename Derived > | |
| void | query (const Eigen::MatrixBase< Derived > &queryPoints, const size_t knn, Matrixi &indices, Matrix &distances) const |
| Index | size () const |
| Index | dimension () const |
| void | clear () |
Class for performing KNN search in hamming space by multi-index hashing.
| typedef Eigen::Matrix<Scalar, Eigen::Dynamic, Eigen::Dynamic> knncpp::MultiIndexHashing< Scalar >::Matrix |
| typedef knncpp::Matrixi knncpp::MultiIndexHashing< Scalar >::Matrixi |
| typedef Eigen::Matrix<Scalar, Eigen::Dynamic, 1> knncpp::MultiIndexHashing< Scalar >::Vector |
|
inline |
|
inline |
Constructs an index with the given data. This does not build the the index.
| data | NxM matrix, M points of dimension N |
| copy | if true copies the data, otherwise assumes static data |
Definition at line 1173 of file knncpp.h.
References copy, and knncpp::MultiIndexHashing< Scalar >::setData().
|
inline |
|
inline |
Definition at line 1317 of file knncpp.h.
Referenced by knncpp::MultiIndexHashing< Scalar >::setData().
|
inline |
Returns the dimension of the data points in the search index.
Definition at line 1315 of file knncpp.h.
Referenced by knncpp::MultiIndexHashing< Scalar >::query().
|
inline |
Definition at line 1247 of file knncpp.h.
References knncpp::MultiIndexHashing< Scalar >::dimension(), dist(), knncpp::QueryHeap< Scalar >::front(), knncpp::QueryHeap< Scalar >::full(), offset, knncpp::QueryHeap< Scalar >::pop(), knncpp::QueryHeap< Scalar >::push(), and knncpp::QueryHeap< Scalar >::sort().
|
inline |
Set the data points used for the KNN search.
| data | NxM matrix, M points of dimension N |
| copy | if true data is copied, assumes static data otherwise |
Definition at line 1202 of file knncpp.h.
References knncpp::MultiIndexHashing< Scalar >::clear(), and copy.
Referenced by knncpp::MultiIndexHashing< Scalar >::MultiIndexHashing().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |