點雲學習

點雲對象的聲明

pcl::PointCloud<pcl::PointXYZ> cloud;//點雲對象
pcl::PointCloud<pcl::PointXYZ>::Ptr cloudPtr
		(new pcl::PointCloud<pcl::PointXYZ>);//點雲指針對象

轉換關係

cloud = * cloudPtr;
cloudPtr = cloud.makeShared();

示例

//點雲輸入
setInputCloud(cloudPtr);//setInputCloud(cloud.makeShared());

//點雲濾波
filter(cloud);//fiter(*cloudPtr);
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章