私は PCL を初めて使用します。些細な質問でしたら申し訳ありません。
これを行う「簡単な」方法があるかどうか疑問に思っていました:
3dPoints (X、Y、Z) のコスチューム「点群」があります。以下に示すように、各 3dPoint のピクセル インデックスがあります。
(0) +----------------------------+ (101)
(102) | | (203)
| |
| |
| |
+----------------------------+ (611)
コスチューム ポイント クラウドのすべてのポイントに対してループを作成し、それらに何かを行い、 pcl::PointCloud<pcl::PointXYZ> pointcloud
(ループの前に初期化された) を同じピクセル インデックスで埋めたいと思います。
pcl::PointCloud<pcl::PointXYZ>::Ptr pcl_cloud(new pcl::PointCloud<pcl::PointXYZ>);
for (all 3dPoints of the costume point cloud)
{
// do somethin to them
// fill the pcl_cloud with the 3dPoint 's X, Y,and Z with the same pixel index
}
ご協力いただきありがとうございます