PCL体素滤波

头文件:

#include <pcl/filters/voxel_grid.h>

函数示例:

void pclDownsize(pcl::PointCloud<pcl::PointXYZ>::Ptr in, pcl::PointCloud<pcl::PointXYZ>::Ptr out)
{
    pcl::VoxelGrid<pcl::PointXYZ> down_filter;
    float leaf = 0.05;
    down_filter.setLeafSize(leaf, leaf, leaf);
    down_filter.setInputCloud(in);
    down_filter.filter(*out);
}
上一篇:分布式主键 Leaf-segment


下一篇:LC.1080. Insufficient Nodes in Root to Leaf Paths