PCL:平面分割

PCL: Plane segmentation

本文关键字:分割 平面 PCL      更新时间:2023-10-16

当尝试从这里遵循圆柱体分割的示例时:

我已经复制了代码,但它不能在行上编译:

extract.setIndices (inliers_plane); 
我得到的错误是:
function pcl::ExtractIndices<pcl::PointXYZ>::applyFilter(std::vector<int, std::allocator<int> >&): error: undefined reference to 'pcl::ExtractIndices<pcl::PointXYZ>::applyFilterIndices(std::vector<int, std::allocator<int> >&)' 

有什么问题吗?

这些是我要链接的库:

-lpcl_io 
-lpcl_visualization 
-lpcl_tracking 
-lpcl_common 
-lpcl_surface 
-lpcl_kdtree 
-lpcl_keypoints 
-lpcl_octree 
-lpcl_registration 
-lpcl_sample_consensus 
-lpcl_search 
-lpcl_segmentation 
-lpcl_geometry 
-lpcl_surface 
-lpcl_features

需要链接到pcl_filters