将cluster_indices里的索引的指针用yq表示的c++代码stdvectorpclPointIndices cluster_indices;ecextractcluster_indices;
std::vectorpcl::PointIndices cluster_indices; ec.extract(cluster_indices);
// 用yq表示指针 std::vectorpcl::PointIndices* yq; for (int i = 0; i < cluster_indices.size(); i++) { yq.push_back(&cluster_indices[i]); }
原文地址: https://www.cveoy.top/t/topic/hYUc 著作权归作者所有。请勿转载和采集!