zoukankan      html  css  js  c++  java
  • PCL point cloud

    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

    QQ 3087438119
  • 相关阅读:
    使windows server 2003 开机不显示登录页面
    G
    D
    三分求函数极值详解
    H
    G
    E
    D
    A
    B
  • 原文地址:https://www.cnblogs.com/herd/p/14614597.html
Copyright © 2011-2022 走看看