标签:examples point tail err app color int library art
PCL point cloud
#include<pcl/visualization/cloud_viewer.h> #include<iostream> #include<pcl/io/io.h> #include<pcl/io/pcd_io.h> #include<pcl/io/ply_io.h> #include<pcl/point_types.h> int user_data; using std::cout; int main() { pcl::PointCloud<pcl::PointXYZ>::Ptr cloud(new pcl::PointCloud<pcl::PointXYZ>); char strfilepath[256] = "E:\\Realsense\\librealsense-master\\wrappers\\python\\examples\\out.pcd"; if (-1 == pcl::io::loadPCDFile(strfilepath, *cloud)) { cout << "error input!" << endl; return -1; } cout << cloud->points.size() << endl; pcl::visualization::CloudViewer viewer("Cloud Viewer"); viewer.showCloud(cloud); system("pause"); return 0; }
参考:
https://blog.csdn.net/weixin_39871164/article/details/102879962
https://blog.csdn.net/qq_34784753/article/details/77484414
https://github.com/PointCloudLibrary/pcl/releases/tag/pcl-1.8.1
标签:examples point tail err app color int library art
原文地址:https://www.cnblogs.com/herd/p/14614597.html