直通滤波器
void passthrough(pcl::PointCloud<pcl::PointXYZ>::Ptr cloud, pcl::PointCloud<pcl::PointXYZ>::Ptr& cloud_after_PassThrough,float rangelow, float rangehigh, string dimension) {
pcl::PassThrough<pcl::PointXYZ> passthrough;
passthrough.setInputCloud(cloud);
passthrough.setFilterFieldName(dimension);
passthrough.setFilterLimits(rangelow, rangehigh);
passthrough.filter(*cloud_after_PassThrough);
}
体素滤波器
void voxelgrid(pcl::PointCloud<pcl::PointXYZ>::Ptr cloud, pcl::PointCloud<pcl::PointXYZ>::Ptr& cloud_after_voxelgrid, float length, float width, float heigth) {
pcl::VoxelGrid<pcl::PointXYZ> voxelgrid;
voxelgrid.setInputCloud(cloud);
voxelgrid.setLeafSize(length, width, heigth);
voxelgrid.filter(*cloud_after_voxelgrid);
}
统计滤波器
void Statistical(pcl