![]() |
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 | |
| BruteForce ()=default | |
| BruteForce (const Matrix &data, const bool copy=false) | |
| void | setSorted (const bool sorted) |
| void | setTakeRoot (const bool takeRoot) |
| void | setThreads (const unsigned int threads) |
| void | setMaxDistance (const Scalar maxDist) |
| void | setData (const Matrix &data, const bool copy=false) |
| void | setDistance (const Distance &distance) |
| 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 |
Class for performing brute force knn search.
| typedef Eigen::Matrix<Scalar, Eigen::Dynamic, Eigen::Dynamic> knncpp::BruteForce< Scalar, Distance >::Matrix |
| typedef knncpp::Matrixi knncpp::BruteForce< Scalar, Distance >::Matrixi |
| typedef Eigen::Matrix<Scalar, Eigen::Dynamic, 1> knncpp::BruteForce< Scalar, Distance >::Vector |
|
default |
|
inline |
Constructs a brute force instance with the given data.
| data | NxM matrix, M points of dimension N |
| copy | if true copies the data, otherwise assumes static data |
Definition at line 381 of file knncpp.h.
References copy, and knncpp::BruteForce< Scalar, Distance >::setData().
|
inline |
|
inline |
Returns the dimension of the data points in the search index.
Definition at line 481 of file knncpp.h.
Referenced by knncpp::BruteForce< Scalar, Distance >::query().
|
inline |
Definition at line 426 of file knncpp.h.
References knncpp::BruteForce< Scalar, Distance >::dimension(), dist(), knncpp::QueryHeap< Scalar >::front(), knncpp::QueryHeap< Scalar >::full(), knncpp::QueryHeap< Scalar >::pop(), knncpp::QueryHeap< Scalar >::push(), and knncpp::QueryHeap< Scalar >::sort().
|
inline |
Set the data points used for this tree. This does not build the tree.
| data | NxM matrix, M points of dimension N |
| copy | if true data is copied, assumes static data otherwise |
Definition at line 412 of file knncpp.h.
References copy.
Referenced by knncpp::BruteForce< Scalar, Distance >::BruteForce().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |