PCL点云读取与保存:
1 #include <iostream> 2 #include <string> 3 4 #include <pcl/io/io.h> 5 #include <pcl/io/pcd_io.h> 6 #include <pcl/point_types.h> 7 #include <pcl/visualization/pcl_visualizer.h> 8 9 using namespace pcl; 10 11 //保存点云 12 pcl::io::savePCDFile("./test_cloud.pcd", *cloud_out); 13 //读取点云 14 PointCloud<PointXYZRGB>::Ptr cloud_load(new PointCloud<PointXYZRGB>); 15 pcl::io::loadPCDFile("./test_cloud.pcd", *cloud_load);
标签:PCL,读取,pcl,点云,include,cloud From: https://www.cnblogs.com/Jack-Elvis/p/17833296.html