16 const IndicesPtrT& indices =
nullptr)
18 using PointT =
typename PointCloudT::PointType;
20 pcl::VoxelGrid<PointT> vg;
22 vg.setLeafSize(leafSize, leafSize, leafSize);
24 vg.setInputCloud(inputCloud);
27 vg.setIndices(indices);
30 typename PointCloudT::Ptr output(
new PointCloudT);