10 template <
typename Setter,
typename Po
intCloud,
typename KdTree>
13 tbb::parallel_for(tbb::blocked_range<size_t>(0,
traits::size(cloud)), [&](
const tbb::blocked_range<size_t>& range) {
14 for (
size_t i = range.begin(); i < range.end(); i++) {
15 estimate_local_features<Setter>(cloud, kdtree, num_neighbors, i);
20 template <
typename Setter,
typename Po
intCloud>
25 tbb::parallel_for(tbb::blocked_range<size_t>(0,
traits::size(cloud)), [&](
const tbb::blocked_range<size_t>& range) {
26 for (
size_t i = range.begin(); i < range.end(); i++) {
27 estimate_local_features<Setter>(cloud, kdtree, num_neighbors, i);
37 template <
typename Po
intCloud>
39 estimate_local_features_tbb<NormalSetter<PointCloud>>(cloud, num_neighbors);
48 template <
typename Po
intCloud,
typename KdTree>
50 estimate_local_features_tbb<NormalSetter<PointCloud>>(cloud, kdtree, num_neighbors);
58 template <
typename Po
intCloud>
60 estimate_local_features_tbb<CovarianceSetter<PointCloud>>(cloud, num_neighbors);
69 template <
typename Po
intCloud,
typename KdTree>
71 estimate_local_features_tbb<CovarianceSetter<PointCloud>>(cloud, kdtree, num_neighbors);
79 template <
typename Po
intCloud>
81 estimate_local_features_tbb<NormalCovarianceSetter<PointCloud>>(cloud, num_neighbors);
90 template <
typename Po
intCloud,
typename KdTree>
92 estimate_local_features_tbb<NormalCovarianceSetter<PointCloud>>(cloud, kdtree, num_neighbors);
size_t size(const T &points)
Get the number of points.
Definition: traits.hpp:16
void resize(T &points, size_t n)
Resize the point cloud (this function should resize all attributes)
Definition: traits.hpp:58
Definition: flat_container.hpp:12
void estimate_covariances_tbb(PointCloud &cloud, int num_neighbors=20)
Estimate point covariances with TBB.
Definition: normal_estimation_tbb.hpp:59
void estimate_local_features_tbb(PointCloud &cloud, KdTree &kdtree, int num_neighbors)
Definition: normal_estimation_tbb.hpp:11
void estimate_normals_covariances_tbb(PointCloud &cloud, int num_neighbors=20)
Estimate point normals and covariances with TBB.
Definition: normal_estimation_tbb.hpp:80
void estimate_normals_tbb(PointCloud &cloud, int num_neighbors=20)
Estimate point normals with TBB.
Definition: normal_estimation_tbb.hpp:38
"Safe" KdTree that holds the ownership of the input points.
Definition: kdtree.hpp:245
Point cloud.
Definition: point_cloud.hpp:15
"Unsafe" KdTree.
Definition: kdtree.hpp:137