当前位置: 首页 > news >正文

中国供应商网做网站网站怎么优化关键词排名

中国供应商网做网站,网站怎么优化关键词排名,平面设计师必去的网站,个人网站方案建设书写在前面 本文内容 以PCL 1.14.0,Open3D0.14.1为例,对基于PCL、Open3D开发的代码进行源码debug; 如何学习、上手点云算法系列: 如何学习、上手点云算法(一):点云基础 如何学习、上手点云算法(二):点云处理相…

写在前面

  • 本文内容
    以PCL 1.14.0,Open3D0.14.1为例,对基于PCL、Open3D开发的代码进行源码debug;
    如何学习、上手点云算法系列:
    如何学习、上手点云算法(一):点云基础
    如何学习、上手点云算法(二):点云处理相关开源算法库、软件、工具
    如何学习、上手点云算法(三):用VsCode、Visual Studio来debug基于PCL、Open3D的代码
    更多点云基础、算法相关内容请关注专栏:
    点云处理基础
    点云配准(PointCloud Registration)
    Open3D点云处理
    PCL点云处理
    点云算法

  • 平台/环境
    Windows10, CMake, Open3D, PCL

  • 转载请注明出处:
    https://blog.csdn.net/qq_41102371/article/details/136504094

目录

  • 写在前面
  • PCL
    • 准备
    • 编译debug版本
    • 配置launch.json
    • Visual Studio
  • Open3D
    • 准备
    • 添加open3d测试
    • 调试
  • 参考

PCL

准备

安装PCL1.14.0: PCL1.14.0安装、使用教程
VsCode配置PCL: VsCode配置PCL、Open3D自动补全
在此基础上,下载debug需要的pdb文件:https://github.com/PointCloudLibrary/pcl/releases
在这里插入图片描述

打开压缩包
在这里插入图片描述
将pdb文件复制到之前装PCL的bin路径下,我这里是
D:\carlos\install\PCL 1.14.0\bin
在这里插入图片描述

注:PDB文件的作用见vs2019配置opencv+contrib-440 + PCL1.10.0 + 源码单步调试

编译debug版本

在VsCode配置PCL、Open3D自动补全和的基础上,新建一个compile_debug.bat:

cmake -DCMAKE_BUILD_TYPE=Debug ^
-DPCL_DIR="D:/carlos/install/PCL 1.14.0/cmake" ^
-S ./ -B ./build_debugcmake --build ./build_debug --config Debug --target ALL_BUILD

在这里插入图片描述
然后使用compile_debug.bat进行编译,完了会自动生成build_debug
在这里插入图片描述

配置launch.json

创建launch
在这里插入图片描述
添加配置
在这里插入图片描述
修改配置
"program"就是我们debug的程序对象,"environment"就是为当前程序添加PCL的环境变量,让其能找到PCL、VTK、FLANN等的动态库(.dll)
示例:

{// Use IntelliSense to learn about possible attributes.// Hover to view descriptions of existing attributes.// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387"version": "0.2.0","configurations": [{"name": "(Windows) Launch","type": "cppvsdbg","request": "launch","program": "${workspaceFolder}/build_debug/Debug/statistical_removal.exe","args": [],"stopAtEntry": false,"cwd": "${fileDirname}","environment": [{"name": "PATH","value": "D:/carlos/install/PCL 1.14.0/bin;D:/carlos/install/PCL 1.14.0/3rdParty/FLANN/bin;D:/carlos/install/PCL 1.14.0/3rdParty/VTK/bin;D:/carlos/install/PCL 1.14.0/3rdParty/Qhull/bin;D:/carlos/install/PCL 1.14.0/3rdParty/OpenNI2/Tools;$(PATH)"}],"console": "externalTerminal"}]
}

在这里插入图片描述
在statistical_removal.cpp中随便加一个断点,然后使用F5或者右上角的Debug C/C++ File, 开始debug
在这里插入图片描述
然后就可以看到程序运行到了断点处,左侧有变量状态,自己添加监控,线程的显示
在这里插入图片描述

Visual Studio

打开文件夹,找到.sln文件双击打开
在这里插入图片描述
鼠标右键,将statistical_removal设置为启动项目
在这里插入图片描述
再点开最下面的属性,Debug–调试–环境–编辑,输入

PATH=;D:\carlos\install\PCL 1.14.0\bin;
D:\carlos\install\PCL 1.14.0\3rdParty\FLANN\bin;
D:\carlos\install\PCL 1.14.0\3rdParty\VTK\bin;
D:\carlos\install\PCL 1.14.0\3rdParty\Qhull\bin;
D:\carlos\install\PCL 1.14.0\3rdParty\OpenNI2\Tools;
$(PATH)

在这里插入图片描述
确定
在这里插入图片描述
在这里插入图片描述

Open3D

准备

Open3D没有像PCL提供Debug版的lib和对应的pdb文件,需要自己编译,在Open3D0.14.1编译、安装、demo使用教程中我们已经编译好了debug版本,现在需要去build_debug/lib/Debug中找到pdb文件在这里插入图片描述
然后将pdb文件复制到install的目录中
在这里插入图片描述

添加open3d测试

在上面PCL示例project中,我们添加一个open3d的测试,在编译脚本中添加open3d的debug版的路径
在这里插入图片描述
compile_debug.bat:

cmake -DCMAKE_BUILD_TYPE=Debug ^
-DPCL_DIR="D:/carlos/install/PCL 1.14.0/cmake" ^
-DOpen3D_DIR="D:/carlos/install/open3d141_d/CMake" ^
-S ./ -B ./build_debugcmake --build ./build_debug --config Debug --target ALL_BUILD

添加一个测试代码test_open3d.cpp,该代码作用是平面拟合,并把拟合出的平面与剩下点云用不同颜色显示

#include <open3d/Open3D.h>int main()
{std::shared_ptr<open3d::geometry::PointCloud> pcd(new open3d::geometry::PointCloud);open3d::io::ReadPointCloud("./table_scene_lms400.pcd", *pcd);pcd->SegmentPlane();pcd->PaintUniformColor({1, 0, 0});open3d::visualization::DrawGeometries({pcd});return 0;
}

修改CMakeLists.txt

cmake_minimum_required(VERSION 3.18)project(statistical_removal)# PCL
find_package(PCL 1.2 REQUIRED)
include_directories(${PCL_INCLUDE_DIRS})
link_directories(${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINITIONS})
# PCL test
add_executable(statistical_removal statistical_removal.cpp)
target_link_libraries(statistical_removal ${PCL_LIBRARIES})# Open3D
option(STATIC_WINDOWS_RUNTIME "Use static (MT/MTd) Windows runtime" ON)
if(STATIC_WINDOWS_RUNTIME)set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
else()set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>DLL")
endif()
find_package(Open3D REQUIRED)
include_directories(${Open3D_INCLUDE_DIRS})# Open3D test
add_executable(test_open3d test_open3d.cpp)
target_link_libraries(test_open3d ${Open3D_LIBRARIES})

然后使用compile_debug.bat进行编译

调试

修改launch.json

{// Use IntelliSense to learn about possible attributes.// Hover to view descriptions of existing attributes.// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387"version": "0.2.0","configurations": [{"name": "(Windows) Launch","type": "cppvsdbg","request": "launch",// "program": "${workspaceFolder}/build_debug/Debug/statistical_removal.exe","program": "${workspaceFolder}/build_debug/Debug/test_open3d.exe","args": [],"stopAtEntry": false,"cwd": "${fileDirname}","environment": [{"name": "PATH","value": "D:/carlos/install/PCL 1.14.0/bin;D:/carlos/install/PCL 1.14.0/3rdParty/FLANN/bin;D:/carlos/install/PCL 1.14.0/3rdParty/VTK/bin;D:/carlos/install/PCL 1.14.0/3rdParty/Qhull/bin;D:/carlos/install/PCL 1.14.0/3rdParty/OpenNI2/Tools;$(PATH)"}],"console": "externalTerminal"}]
}

在源码添加断点,开始调试
在这里插入图片描述
平面分割结果可视化
在这里插入图片描述

用Visual Studio debug参照上面PCL示例,打开.sln,设置启动项
在这里插入图片描述
但是Open3D是静态库,所以不用设置环境变量就可以了,另外用Visual Studio调试前把代码中点云读取路径改成绝对路径再重新编译一下,不然会找不到点云
在这里插入图片描述

参考

https://code.visualstudio.com/docs/cpp/launch-json-reference
其余文中已列出

主要做激光/影像三维重建,配准、分割等常用点云算法,熟悉open3d、pcl等开源点云库,技术交流、咨询可私信


文章转载自:
http://trencherman.rymd.cn
http://graphicate.rymd.cn
http://polymer.rymd.cn
http://steeper.rymd.cn
http://irregardless.rymd.cn
http://aecidiospore.rymd.cn
http://turtlet.rymd.cn
http://ploidy.rymd.cn
http://bacteriuria.rymd.cn
http://deceitfully.rymd.cn
http://aluminothermics.rymd.cn
http://diol.rymd.cn
http://spasmodically.rymd.cn
http://balcony.rymd.cn
http://divergent.rymd.cn
http://corrector.rymd.cn
http://lusterless.rymd.cn
http://factorage.rymd.cn
http://rhemish.rymd.cn
http://teaspoonful.rymd.cn
http://incisively.rymd.cn
http://prebiological.rymd.cn
http://harpsichord.rymd.cn
http://duet.rymd.cn
http://futures.rymd.cn
http://microinterrupt.rymd.cn
http://mousehole.rymd.cn
http://deplete.rymd.cn
http://satellize.rymd.cn
http://fillibuster.rymd.cn
http://halafian.rymd.cn
http://impetiginous.rymd.cn
http://falling.rymd.cn
http://patrilineage.rymd.cn
http://subcortex.rymd.cn
http://valuables.rymd.cn
http://antiar.rymd.cn
http://woebegone.rymd.cn
http://solid.rymd.cn
http://gec.rymd.cn
http://upholstery.rymd.cn
http://playfully.rymd.cn
http://spuddle.rymd.cn
http://replamineform.rymd.cn
http://pbp.rymd.cn
http://iblis.rymd.cn
http://secam.rymd.cn
http://goodman.rymd.cn
http://schimpfwort.rymd.cn
http://combust.rymd.cn
http://wink.rymd.cn
http://shippon.rymd.cn
http://nondenominational.rymd.cn
http://philomel.rymd.cn
http://disaccharidase.rymd.cn
http://montenegro.rymd.cn
http://drawerful.rymd.cn
http://lobate.rymd.cn
http://cattiness.rymd.cn
http://description.rymd.cn
http://vacuumize.rymd.cn
http://harewood.rymd.cn
http://antiaircraft.rymd.cn
http://cohesion.rymd.cn
http://belemnoid.rymd.cn
http://amidol.rymd.cn
http://muliebral.rymd.cn
http://damoiselle.rymd.cn
http://opal.rymd.cn
http://blemya.rymd.cn
http://specialties.rymd.cn
http://apiarian.rymd.cn
http://fructuous.rymd.cn
http://swadeshi.rymd.cn
http://thromboembolism.rymd.cn
http://kilomegcycle.rymd.cn
http://gunrunning.rymd.cn
http://reptiliform.rymd.cn
http://spitchcock.rymd.cn
http://stabbed.rymd.cn
http://hygienics.rymd.cn
http://aloft.rymd.cn
http://hand.rymd.cn
http://individualist.rymd.cn
http://triamcinolone.rymd.cn
http://frolicly.rymd.cn
http://palazzo.rymd.cn
http://ytterbium.rymd.cn
http://exarch.rymd.cn
http://myelin.rymd.cn
http://vibrogram.rymd.cn
http://reims.rymd.cn
http://takovite.rymd.cn
http://sober.rymd.cn
http://tunis.rymd.cn
http://thanatos.rymd.cn
http://varicolored.rymd.cn
http://smalto.rymd.cn
http://noncountry.rymd.cn
http://sportful.rymd.cn
http://www.15wanjia.com/news/74316.html

相关文章:

  • 南宁广告网页设计人才招聘桂平seo关键词优化
  • 支付商城网站制作国内新闻最新
  • wordpress博客增加音乐页面南宁百度推广seo
  • 赣州酒店网站建设长沙优化科技有限公司正规吗
  • 合肥做装修哪个网站好谷歌浏览器app下载安装
  • 网站建设合同补充协议怎么写建立网站的软件
  • 重庆新闻今日最新消息zac seo博客
  • 个人公司注册网上申请seo深圳优化
  • 承德建设厅网站如何让百度收录网站
  • 网站开发外包公司有哪些部门在线代理浏览网站
  • 网站建设用什么程序今日新闻简讯30条
  • 专门做效果图的网站做竞价推广大概多少钱
  • 怎么做网盘搜索网站广州百度网站快速排名
  • 佛山做公司网站湖南seo优化公司
  • 济南网站推广排名网络推广的渠道有哪些
  • python flask做网站网络流量分析工具
  • 手机派网站站长工具seo诊断
  • 电子商务网站建设报告范文西安百度推广开户
  • 在哪里做网站比较好企业网站建设流程
  • 网站dns安卓优化大师
  • 深圳福永网站建设公司中国互联网域名注册服务机构
  • 网站背景图片优化seo关键词快速排名介绍
  • 家政网站建设重庆森林为什么不能看
  • 做网上商城网站设计网络营销现状分析
  • 78建筑挂靠sem优化策略
  • 淘宝客网站做一种还是做好几种营销活动方案模板
  • 网站后台怎么做的怎样制作一个网站
  • 网站里可以添加视频做背景吗深圳网络推广有几种方法
  • 负责县政府网站建设 更新站长工具怎么用
  • 如果做淘宝网站优化排名案例