PCL Show Point Cloud 显示点云

 

在使用PCL库的时候,经常需要显示点云,可以用下面这段代码:

 

#include <pcl/visualization/cloud_viewer.h>
 
pcl::PointCloud<pcl::PointXYZRGB>::Ptr cloud;
pcl::visualization::CloudViewer viewer ("Viewer");
viewer.showCloud (cloud);
while (!viewer.wasStopped ())
{
}

 

posted @ 2016-06-18 12:29  Grandyang  阅读(9185)  评论(0编辑  收藏  举报
Fork me on GitHub