• PCL安装使用


    一. 下载安装

    http://pointclouds.org/downloads/windows.html

    1. QT安装在默认路径下(否则后续会出现问题),添加环境变量QTDIR(c:Qt4.8.0),把bin文件夹添加到Path环境变量。

    2. 编译ALL_BUILD,最终会因为pcl_io模块编译失败导致很多错误。解决方案:

    把ioincludepcliopng_io.h文件报错地方”template <“的前四行注释掉,重新编译io模块
    //    PCL_DEPRECATED (template <typename T> void savePNGFile (const std::string& file_name, const pcl::PointCloud<T>& cloud),
    //    "pcl::io::savePNGFile<typename T> (file_name, cloud) is deprecated, please use a new generic "
    //    "function pcl::io::savePNGFile (file_name, cloud, field_name) with "rgb" as the field name."
    //    );

    3. 不要把PCL安装在C盘,因为会出现Cmake没法创建文件夹的错误。

    二. 使用

    1.配置系统环境

        a、(Optionl) 计算机-->属性-->高级系统设置。弹出系统属性框。高级-->环境变量。添加系统变量,PCL_ROOT,变量值:D:Program FilesPCL 1.6.0

        b、在系统变量Path后追加:

             D:Program FilesOpenNIBin;

             D:Program FilesPCL 1.6.0in;

             D:Program FilesPCL 1.6.03rdPartyFLANNin;

             D:Program FilesPCL 1.6.03rdPartyQhullin;

    2.工程配置

       a、新建工程后,项目属性->VC++目录->包含目录 添加:

                D:Program FilesOpenNIInclude           

                D:Program FilesOpenNIIncludeWin32

                D:Program FilesPCL 1.6.0includepcl-1.6

                D:Program FilesPCL 1.6.03rdPartyBoostinclude

                D:Program FilesPCL 1.6.03rdPartyEigeninclude

                D:Program FilesPCL 1.6.03rdPartyFLANNinclude

                D:Program FilesPCL 1.6.03rdPartyQhullinclude

                D:Program FilesPCL 1.6.03rdPartyVTKincludevtk-5.8

        b、项目属性->VC++目录->库目录 添加:

                D:Program FilesOpenNILib

                D:Program FilesPCL 1.6.0lib

                D:Program FilesPCL 1.6.03rdPartyBoostlib

                D:Program FilesPCL 1.6.03rdPartyFLANNlib

                D:Program FilesPCL 1.6.03rdPartyQhulllib

                D:Program FilesPCL 1.6.03rdPartyVTKlibvtk-5.8

        c.  dubug模式,链接器->输入->附加依赖项 添加

                     OpenNI.lib

                opengl32.lib

                pcl_keypoints_debug.lib
                pcl_kdtree_debug.lib
                pcl_io_debug.lib
                pcl_search_debug.lib
                pcl_segmentation_debug.lib
                pcl_features_debug.lib
                pcl_filters_debug.lib
                pcl_visualization_debug.lib
                pcl_common_debug.lib
                flann_cpp_s-gd.lib
                libboost_system-vc100-mt-gd-1_50.lib
                libboost_filesystem-vc100-mt-gd-1_50.lib
                libboost_thread-vc100-mt-gd-1_50.lib
                libboost_date_time-vc100-mt-gd-1_50.lib
                libboost_iostreams-vc100-mt-gd-1_50.lib
                vtkalglib-gd.lib
                vtkCharts-gd.lib
                vtkCommon-gd.lib
                vtkDICOMParser-gd.lib
                vtkexoIIc-gd.lib
                vtkexpat-gd.lib
                vtkFiltering-gd.lib
                vtkfreetype-gd.lib
                vtkftgl-gd.lib
                vtkGenericFiltering-gd.lib
                vtkGeovis-gd.lib
                vtkGraphics-gd.lib
                vtkhdf5-gd.lib
                vtkHybrid-gd.lib
                vtkImaging-gd.lib
                vtkInfovis-gd.lib
                vtkIO-gd.lib
                vtkjpeg-gd.lib
                vtklibxml2-gd.lib
                vtkmetaio-gd.lib
                vtkNetCDF-gd.lib
                vtkNetCDF_cxx-gd.lib
                vtkpng-gd.lib
                vtkproj4-gd.lib
                vtkRendering-gd.lib
                vtksqlite-gd.lib
                vtksys-gd.lib
                vtktiff-gd.lib
                vtkverdict-gd.lib
                vtkViews-gd.lib
                vtkVolumeRendering-gd.lib
                vtkWidgets-gd.lib
                vtkzlib-gd.lib

    三. 测试图像

    http://pointclouds.org/media/

  • 相关阅读:
    面试问题记录
    面试问题记录
    面试问题记录
    JavaScript => ?
    Jsr303数据校验
    在浏览器上开发GO和Vue!(基于code-server)
    IdentityServer4 4.0.0
    9/13-9/18
    9/6-9/10
    8/30-9/3
  • 原文地址:https://www.cnblogs.com/uestc-wxp/p/3569400.html
Copyright © 2020-2023  润新知