设置下面代码内点个数的c++代码pclSACSegmentationpclPointXYZ seg; pclPointIndicesPtr inliersnew pclPointIndices; pclModelCoefficientsPtr coefficientsnew pclModelCoefficients; Set the segmentation parameters segsetO
要获取点云中的点个数,可以使用以下代码:
int numPoints = seg.getInputCloud()->size();
std::cout << "Number of points: " << numPoints << std::endl;
这将打印出点云中的点的数量。
原文地址: https://www.cveoy.top/t/topic/hLYu 著作权归作者所有。请勿转载和采集!