Open3D (C++ API)
0.18.0
|
KDTree with FLANN for nearest neighbor search. More...
#include <KDTreeFlann.h>
Public Member Functions | |
KDTreeFlann () | |
Default Constructor. More... | |
KDTreeFlann (const Eigen::MatrixXd &data) | |
Parameterized Constructor. More... | |
KDTreeFlann (const Geometry &geometry) | |
Parameterized Constructor. More... | |
KDTreeFlann (const pipelines::registration::Feature &feature) | |
Parameterized Constructor. More... | |
~KDTreeFlann () | |
KDTreeFlann (const KDTreeFlann &)=delete | |
KDTreeFlann & | operator= (const KDTreeFlann &)=delete |
bool | SetMatrixData (const Eigen::MatrixXd &data) |
bool | SetGeometry (const Geometry &geometry) |
bool | SetFeature (const pipelines::registration::Feature &feature) |
template<typename T > | |
int | Search (const T &query, const KDTreeSearchParam ¶m, std::vector< int > &indices, std::vector< double > &distance2) const |
template<typename T > | |
int | SearchKNN (const T &query, int knn, std::vector< int > &indices, std::vector< double > &distance2) const |
template<typename T > | |
int | SearchRadius (const T &query, double radius, std::vector< int > &indices, std::vector< double > &distance2) const |
template<typename T > | |
int | SearchHybrid (const T &query, double radius, int max_nn, std::vector< int > &indices, std::vector< double > &distance2) const |
Protected Types | |
using | KDTree_t = nanoflann::KDTreeEigenMatrixAdaptor< Eigen::Map< const Eigen::MatrixXd >, -1, nanoflann::metric_L2, false > |
Protected Attributes | |
std::vector< double > | data_ |
std::unique_ptr< Eigen::Map< const Eigen::MatrixXd > > | data_interface_ |
std::unique_ptr< KDTree_t > | nanoflann_index_ |
size_t | dimension_ = 0 |
size_t | dataset_size_ = 0 |
KDTree with FLANN for nearest neighbor search.
|
protected |
open3d::geometry::KDTreeFlann::KDTreeFlann | ( | ) |
Default Constructor.
open3d::geometry::KDTreeFlann::KDTreeFlann | ( | const Eigen::MatrixXd & | data | ) |
Parameterized Constructor.
data | Provides set of data points for KDTree construction. |
open3d::geometry::KDTreeFlann::KDTreeFlann | ( | const Geometry & | geometry | ) |
Parameterized Constructor.
geometry | Provides geometry from which KDTree is constructed. |
open3d::geometry::KDTreeFlann::KDTreeFlann | ( | const pipelines::registration::Feature & | feature | ) |
Parameterized Constructor.
feature | Provides a set of features from which the KDTree is constructed. |
open3d::geometry::KDTreeFlann::~KDTreeFlann | ( | ) |
|
delete |
|
delete |
int open3d::geometry::KDTreeFlann::Search | ( | const T & | query, |
const KDTreeSearchParam & | param, | ||
std::vector< int > & | indices, | ||
std::vector< double > & | distance2 | ||
) | const |
int open3d::geometry::KDTreeFlann::SearchHybrid | ( | const T & | query, |
double | radius, | ||
int | max_nn, | ||
std::vector< int > & | indices, | ||
std::vector< double > & | distance2 | ||
) | const |
int open3d::geometry::KDTreeFlann::SearchKNN | ( | const T & | query, |
int | knn, | ||
std::vector< int > & | indices, | ||
std::vector< double > & | distance2 | ||
) | const |
int open3d::geometry::KDTreeFlann::SearchRadius | ( | const T & | query, |
double | radius, | ||
std::vector< int > & | indices, | ||
std::vector< double > & | distance2 | ||
) | const |
bool open3d::geometry::KDTreeFlann::SetFeature | ( | const pipelines::registration::Feature & | feature | ) |
Sets the data for the KDTree from the feature data.
feature | Set of features for KDTree construction. |
bool open3d::geometry::KDTreeFlann::SetGeometry | ( | const Geometry & | geometry | ) |
Sets the data for the KDTree from geometry.
geometry | Geometry for KDTree Construction. |
bool open3d::geometry::KDTreeFlann::SetMatrixData | ( | const Eigen::MatrixXd & | data | ) |
Sets the data for the KDTree from a matrix.
data | Data points for KDTree Construction. |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |