PCL相关类型 对象与指针互换
- pcl::PointIndices -> pcl::PointIndices::Ptr
1 | pcl::PointIndices inliers; |
- pcl::PointIndices::Ptr -> pcl::PointIndices
1 | pcl::PointIndices inliers; |
- std::vector
-> pcl::IndicesPtr
1 | std::vector<int> vec_indices; |
- pcl::PointCloud
-> pcl::PointCloud ::Ptr
1 | PointCloud<PointT>::Ptr cloud_ptr(new pcl::PointCloud<PointT>); |
- pcl::PointCloud
::Ptr -> pcl::PointCloud
1 | PointCloud<PointT>::Ptr cloud_ptr(new pcl::PointCloud<PointT>); |
不同数据类型的点云转换
- pcl::PointCloudpcl::PointXYZRGB -> pcl::PointCloudpcl::PointXYZ::Ptr
1 | pcl::PointCloud<pcl::PointXYZRGB>::Ptr cloud_ori(new pcl::PointCloud<pcl::PointXYZRGB>); |