KdTree on intensity augmented coordinates. This class concatenates point coordinates (x, y, z) and intensity (i) and finds nearest neighbors on the XYZI space.
More...
#include <intensity_kdtree.hpp>
|
| | IntensityKdTree (const Eigen::Vector4d *points, const double *intensities, int num_points, double intensity_scale=1.0) |
| | Constructor.
|
| |
|
size_t | kdtree_get_point_count () const |
| |
|
double | kdtree_get_pt (const size_t idx, const size_t dim) const |
| |
|
template<class BBox > |
| bool | kdtree_get_bbox (BBox &) const |
| |
| virtual size_t | knn_search (const double *pt, size_t k, size_t *k_indices, double *k_sq_dists, double max_sq_dist=std::numeric_limits< double >::max()) const override |
| | k-nearest neighbor search
|
| |
| virtual size_t | radius_search (const double *pt, double radius, std::vector< size_t > &indices, std::vector< double > &sq_dists, int max_num_neighbors=std::numeric_limits< int >::max()) const |
| | Radius search.
|
| |
|
|
const int | num_points |
| |
|
const double * | intensities |
| |
|
const Eigen::Vector4d * | points |
| |
|
const double | intensity_scale |
| |
|
double | search_eps |
| |
|
std::unique_ptr< Index > | index |
| |
KdTree on intensity augmented coordinates. This class concatenates point coordinates (x, y, z) and intensity (i) and finds nearest neighbors on the XYZI space.
◆ IntensityKdTree()
| gtsam_points::IntensityKdTree::IntensityKdTree |
( |
const Eigen::Vector4d * |
points, |
|
|
const double * |
intensities, |
|
|
int |
num_points, |
|
|
double |
intensity_scale = 1.0 |
|
) |
| |
Constructor.
- Parameters
-
| points | Input points |
| intensities | Input point intensities |
| num_points | Number of points |
| intensity_scale | Scaling parameter to balance Euclidean coordinates and intensities |
◆ knn_search()
| virtual size_t gtsam_points::IntensityKdTree::knn_search |
( |
const double * |
pt, |
|
|
size_t |
k, |
|
|
size_t * |
k_indices, |
|
|
double * |
k_sq_dists, |
|
|
double |
max_sq_dist = std::numeric_limits<double>::max() |
|
) |
| const |
|
overridevirtual |
k-nearest neighbor search
- Parameters
-
| pt | Point |
| k | Number of neighbors |
| k_indices | Indices of k-nearest neighbors |
| k_sq_dists | Squared distances to the neighbors (sorted in ascending order) |
Reimplemented from gtsam_points::NearestNeighborSearch.
The documentation for this struct was generated from the following file: