3 #include <pcl/point_cloud.h>
4 #include <pcl/filters/voxel_grid.h>
13 template <
typename Po
intCloudT,
typename IndicesPtrT = pcl::IndicesConstPtr>
14 typename PointCloudT::Ptr
17 const IndicesPtrT&
indices =
nullptr)
21 pcl::VoxelGrid<PointT> vg;
23 vg.setLeafSize(leafSize, leafSize, leafSize);
25 vg.setInputCloud(inputCloud);
38 template <
typename Po
intCloudT>
39 typename PointCloudT::Ptr
41 pcl::IndicesConstPtr
indices =
nullptr)
43 return detail::downsampleByVoxelGrid<PointCloudT>(inputCloud, leafSize,
indices);
45 template <
typename Po
intCloudT>
46 typename PointCloudT::Ptr
48 pcl::PointIndicesConstPtr
indices =
nullptr)
50 return detail::downsampleByVoxelGrid<PointCloudT>(inputCloud, leafSize,
indices);