small_gicp
|
"Safe" KdTree that holds the ownership of the input points. More...
#include <kdtree.hpp>
Public Types | |
using | Ptr = std::shared_ptr< KdTree< PointCloud, Projection > > |
using | ConstPtr = std::shared_ptr< const KdTree< PointCloud, Projection > > |
Public Member Functions | |
template<typename Builder = KdTreeBuilder> | |
KdTree (std::shared_ptr< const PointCloud > points, const Builder &builder=Builder()) | |
size_t | nearest_neighbor_search (const Eigen::Vector4d &query, size_t *k_indices, double *k_sq_dists, const KnnSetting &setting=KnnSetting()) const |
Find k-nearest neighbors. This method uses dynamic memory allocation. More... | |
size_t | knn_search (const Eigen::Vector4d &query, size_t k, size_t *k_indices, double *k_sq_dists, const KnnSetting &setting=KnnSetting()) const |
Find k-nearest neighbors. This method uses dynamic memory allocation. More... | |
Public Attributes | |
const std::shared_ptr< const PointCloud > | points |
Points. More... | |
const UnsafeKdTree< PointCloud, Projection > | kdtree |
KdTree. More... | |
"Safe" KdTree that holds the ownership of the input points.
using small_gicp::KdTree< PointCloud, Projection >::ConstPtr = std::shared_ptr<const KdTree<PointCloud, Projection> > |
using small_gicp::KdTree< PointCloud, Projection >::Ptr = std::shared_ptr<KdTree<PointCloud, Projection> > |
|
inlineexplicit |
|
inline |
Find k-nearest neighbors. This method uses dynamic memory allocation.
query | Query point |
k | Number of neighbors |
k_indices | Indices of neighbors |
k_sq_dists | Squared distances to neighbors (sorted in ascending order) |
setting | KNN search setting |
|
inline |
Find k-nearest neighbors. This method uses dynamic memory allocation.
query | Query point |
k | Number of neighbors |
k_indices | Indices of neighbors |
k_sq_dists | Squared distances to neighbors (sorted in ascending order) |
setting | KNN search setting |
const UnsafeKdTree<PointCloud, Projection> small_gicp::KdTree< PointCloud, Projection >::kdtree |
const std::shared_ptr<const PointCloud> small_gicp::KdTree< PointCloud, Projection >::points |
Points.