|
| template<typename Builder = KdTreeBuilder> |
| | UnsafeKdTree (const PointCloud &points, const Builder &builder=KdTreeBuilder()) |
| | Constructor.
|
| |
| size_t | nearest_neighbor_search (const Eigen::Vector3d &query_, size_t *k_indices, double *k_sq_dists, const KnnSetting &setting=KnnSetting()) const |
| | Find the nearest neighbor.
|
| |
| size_t | knn_search (const Eigen::Vector3d &query_, int k, size_t *k_indices, double *k_sq_dists, const KnnSetting &setting=KnnSetting()) const |
| | Find k-nearest neighbors. This method uses dynamic memory allocation.
|
| |
| template<int N> |
| size_t | knn_search (const Eigen::Vector3d &query_, size_t *k_indices, double *k_sq_dists, const KnnSetting &setting=KnnSetting()) const |
| | Find k-nearest neighbors. This method uses fixed and static memory allocation. Might be faster for small k.
|
| |
| size_t | radius_search (const Eigen::Vector3d &query_, double radius, std::vector< size_t > &indices, std::vector< double > &sq_dists, const KnnSetting &setting=KnnSetting()) const |
| | Find neighbors in a search radius.
|
| |
template<typename
PointCloud, typename Projection_ = AxisAlignedProjection>
struct gtsam_points::UnsafeKdTree< PointCloud, Projection_ >
"Unsafe" KdTree.
- Note
- This class does not hold the ownership of the input points. You must keep the input points along with this class.