无序点云排序

点云排序 按照x从小到大

pcl::PointCloud::Ptr cloud(new pcl::PointCloud);

std::sort(cloud->begin(), cloud->end(),

[](pcl::PointXYZ a, pcl::PointXYZ b) {return a.x < b.x; });

你可能感兴趣的:(算法)