PCL点云可视化

帅比萌擦擦* 提交于 2019-12-05 18:59:29
#include "pclf.h"
#include <pcl/ModelCoefficients.h>
#include <pcl/filters/voxel_grid.h>
#include <pcl/filters/statistical_outlier_removal.h>
#include <string>
int main()
{
    PLCSF sface;
    
    std::string path = "./sFace/flat/PointCould.txt";//点云路径
    PointCloud<PointXYZ>::Ptr cloud(new PointCloud<PointXYZ>());
    PointCloud<PointXYZ>::Ptr cloud_filtered(new PointCloud<PointXYZ>());
    sface.readCloudFile(path, cloud);//读入点云数据
    cout << cloud->size()<< endl;
    
    //可视化
    pcl::visualization::CloudViewer viewer("Cloud viewer");
    viewer.showCloud(cloud);
    system("pause");
}

 

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!