pcl::PointCloud和pcl::PontCloud::Ptr之間的關係和轉換方式
pcl::PointCloud和pcl::PontCloud::Ptr之間的關係和轉換方式
關係
pcl::PointCloud::Ptr是pcl::PointCloud的指標型別
轉換方式
pcl::PointCloud轉換成pcl::PointCloud::Ptr
pcl::PointCloud<pcl:PointXYZ>::Ptr cloud_ptr(new pcl::PointCloud<pcl::PointXYZ>);
pcl::PointCloud<pcl::PointXYZ> cloud;
cloud_ptr=cloud.makeShared();
pcl::PointCloud::Ptr轉換成pcl::PointCloud
pcl::PointCloud<pcl::PointXYZ> cloud;
pcl::PointCloud<pcl::PointXYZ>::Ptr cloud_ptr(new pcl::PointCloud<pcl::PointXYZ>);
cloud=*cloud_ptr;
不想定義新的型別那麼可以採用以下的方式轉換:
pcl::PointCloud<pcl::PointXYZ> cloud;
pcl::octree::OctreePointCloudSearch<pcl::PointXYZ> octree(resolution);
octree.setInputCloud(cloudA.makeShared());
pcl::PointCloud<pcl::PointXYZ>::Ptr cloud_ptr(new pcl::PointCloud<pcl::PointXYZ>);
pcl::octree::OctreePointCloudSearch<pcl::PointXYZ> octree(resolution);
octree.setInputCloud(cloud_ptr);
相關文章
- PCL環境配置失敗和執行PCL自帶例子
- auto_ptr_ref和auto_ptr的關係 (轉)
- PCL之ICP演算法演算法
- FAILGROUP和REDUNDANCY之間的關係關係!AI
- PCL 計算點雲的面積和體積
- PCL(9)PLC庫和OpenCV庫中的FLANN衝突OpenCV
- tablespace和datafile之間的關係
- 【點雲PCL入門】PCL+QT+VTK顯示點雲QT
- pcl常用小知識
- PCL: Registration模組之IterativeClosestPoint點雲配準
- PCL——txt檔案轉到PCD檔案
- Window, WindowManager和WindowManagerService之間的關係
- 角度和弧度之間的轉換
- clob和字串之間的轉換字串
- 黑客和開源革命之間的關係黑客
- 關於XML字串和XML Document之間的轉換薦XML字串
- 網站和伺服器之間的關係網站伺服器
- 如何理解Nginx、uWSGI和Flask之間的關係?NginxFlask
- SDK、JDK、JRE 和JVM 之間的關係JDKJVM
- Web3和元宇宙之間的關係Web元宇宙
- 備份集和備份片之間的關係
- Android 中Activity,Window和View之間的關係AndroidView
- 工具和敏捷軟體開發之間的關係敏捷
- ASM file和file alias之間的對映關係!ASM
- 重新認識“物件”和“行為”之間的關係物件
- 字串和Date型別之間的轉換字串型別
- SDK、API 和 app 之間的關係和聯絡是什麼?APIAPP
- PCL程式設計-法向量計算程式設計
- PCL常見程式設計問題程式設計
- 前端之DOM解析和渲染與CSS、JS之間的關係前端CSSJS
- 關於表空間和表的關係
- Kubernetes和Docker之間的關係是什麼?Docker
- 卷積層和全連線層之間的關係卷積
- width和padding之間的關係介紹padding
- Map和String型別之間的轉換型別
- date和timestamp型別之間的轉換型別
- java基本型別和物件之間的轉換Java型別物件
- String和Date、Timestamp之間的轉換