PCL PCD文件读写
作者:互联网
/*
时隔一年,又回来做双目视觉方向,需要重新启航,加油!!!
*/
#include <iostream>
#include <pcl/io/pcd_io.h>
#include <pcl/point_types.h>
int main()
{
//--------------------------------------------点云数据读入-------------------------------------------------------------
//定义点云数据
pcl::PointCloud<pcl::PointXYZ>::Ptr cloud (new pcl::PointCloud<pcl::PointXYZ>);
// 定义读取对象
pcl::PCDReader reader;
// 读取点云文件
reader.read<pcl::PointXYZ> ("test.pcd", *cloud);
//-------------------------------------------------------------点云数据写入----------------------------------------------------------------
pcl::PCDWriter
writer writer.write<pcl::PointXYZ>("filename.pcd", cloud);
}
标签:PointCloud,PCL,读写,writer,PCD,pcl,点云,include,cloud 来源: https://blog.csdn.net/jqw11/article/details/90749295