3 #include <pcl/segmentation/sac_segmentation.h>
13 pcl::SACSegmentation<PointT> seg;
14 seg.setOptimizeCoefficients(
true);
15 seg.setModelType(pcl::SACMODEL_PERPENDICULAR_PLANE);
16 seg.setMethodType(pcl::SAC_RANSAC);
26 pcl::PointIndices::Ptr inliers(
new pcl::PointIndices);
27 pcl::ModelCoefficients::Ptr coefficients(
new pcl::ModelCoefficients);
29 seg.setInputCloud(
input);
30 seg.segment(*inliers, *coefficients);
32 if (inliers->indices.empty())
42 Eigen::Vector3f normalEst(coefficients->values[0], coefficients->values[1], coefficients->values[2]);