【发布时间】:2018-09-22 00:36:00
【问题描述】:
我正在尝试实现点云背景减法。 (例如 background.pcd = input.pcd - object.pcd)
我找到了以下代码
pcl::PointCloud<pcl::PointXYZ>::Ptr p_obstacles(new pcl::PointCloud<pcl::PointXYZ>);
pcl::PointIndices::Ptr inliers(new pcl::PointIndices());
pcl::ExtractIndices<pcl::PointXYZ> extract;
// Insert something.
extract.setInputCloud(p_obstacles);
extract.setIndices(inliers);
extract.setNegative(true);
extract.filter(*p_obstacles);
Removing points from a pcl::PointCloud<pcl::PointXYZRGB>
在我的理解中,inliers 是从 input.pcd 中减去的
(内点 = object.pcd ??)
我不知道如何使用预先存在的 x、y、z 值(pcd)设置内点值
谢谢!
【问题讨论】:
标签: point-cloud-library point-clouds