3 #include <pcl/filters/voxel_grid.h>
4 #include <pcl/point_cloud.h>
12 template <
typename Po
intCloudT,
typename IndicesPtrT = pcl::IndicesConstPtr>
13 typename PointCloudT::Ptr
16 const IndicesPtrT&
indices =
nullptr)
20 pcl::VoxelGrid<PointT> vg;
22 vg.setLeafSize(leafSize, leafSize, leafSize);
24 vg.setInputCloud(inputCloud);
37 template <
typename Po
intCloudT>
38 typename PointCloudT::Ptr
41 pcl::IndicesConstPtr
indices =
nullptr)
43 return detail::downsampleByVoxelGrid<PointCloudT>(inputCloud, leafSize,
indices);
46 template <
typename Po
intCloudT>
47 typename PointCloudT::Ptr
50 pcl::PointIndicesConstPtr
indices =
nullptr)
52 return detail::downsampleByVoxelGrid<PointCloudT>(inputCloud, leafSize,
indices);