栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > C/C++/C#

深度图像(6)

C/C++/C# 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

深度图像(6)

对三维信息的描述,除了点云的直接描述外,常见的RGB-D相机获取的深度影像也是目前重要的三维信息描述方式。

创建点云对应的深度图像:

//头文件
#include 

//设置观测弧度间隔、最大水平观测范围、最大垂直观测范围
float angularResolution = (float)(1.0f * (M_PI / 180.0f));
float maxAngleWidth = (float)(360.0f * (M_PI / 180.0f));
float maxAngleHeight = (float)(180.0f * (M_PI / 180.0f));

//设置采集位置
Eigen::Affine3f sensorPose = (Eigen::Affine3f)Eigen::Translation3f(0.0f,0.0f,0.0f);
//设置深度坐标系
pcl::RangeImage::Coordinateframe coordinate_frame = pcl::RangeImage::CAMERA_frame;
float noiseLevel = 0.00;
float minRange = 0.0f;
int borderSize = 1;
//声明深度图像
pcl::RangeImage range_image;
range_image.createFromPointCloud(cloud,angularResolution,maxAngleWidth,maxAngleHeight,sensorPose,coordinate_frame,noiseLevel,minRange,borderSize);

深度图像提取边界:

pcl::RangeImageBorderExtractor border_extractor(&range_image);
pcl::PointCloud border_descriptions;
border_extractor.compute(border_descriptions);

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/628810.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号