当前位置:网站首页>matlab保存DB4i深度相机图片
matlab保存DB4i深度相机图片
2022-07-01 07:29:00 【xxxx追风】
matlab保存DB4i深度相机图片
bag = rosbag(fullfile('D:\','2022-06-22-16-54-08.bag'));
bSel_depth = select(bag,'Topic','/camera/color/image_raw');
depth_message=select(bSel_depth,'MessageType','sensor_msgs/Image');
data_depth=readMessages(depth_message);
L = length(data_depth);
for i=1:L
single_image = data_depth{
i,1};
single_image_matlab =readImage(single_image);
figure(i);
imshow(single_image_matlab,[],'Border','tight'); % 'Border','tight'用来去除边缘
image_name = [num2str(i-1,'%04d'),'.jpg'];
saveas(i,fullfile('D:\bbbimage',image_name));
pause(0.2);
close(i);
end
参考:https://blog.csdn.net/hanmoge/article/details/123077809
边栏推荐
- [R language] two /n data merge functions
- Illusory and simple screen raindrop post-processing effect
- 北漂程序员深夜emo发帖求助:女朋友走了我很孤独 ......
- Inventory the six second level capabilities of Huawei cloud gaussdb (for redis)
- 2022电工(中级)复训题库及答案
- Apple账号密码自动填充
- JSP - paging
- Redisson watchdog mechanism, redisson watchdog performance problems, redisson source code analysis
- 2022制冷与空调设备运行操作国家题库模拟考试平台操作
- 浅谈CVPR2022的几个研究热点
猜你喜欢

TodoList经典案例①

2022电工(中级)复训题库及答案

atguigu----脚手架--02-使用脚手架(2)

关于图灵测试和中文屋Chinese room的理解

Apple account password auto fill

Warm congratulations on the successful listing of five elements hehe liquor

Open source! Wenxin large model Ernie tiny lightweight technology, accurate and fast, full effect

热烈祝贺五行和合酒成功挂牌

1286_ Implementation analysis of task priority setting in FreeRTOS

How to create an exclusive vs Code theme
随机推荐
Reply and explanation on issues related to "online training of network security education in 2022"
[R language] age sex frequency matching select samples for case-control study, and perform frequency matching on age and sex
【R语言】两个/N个数据合并merge函数
北漂程序员深夜emo发帖求助:女朋友走了我很孤独 ......
Browser local storage
Cadence OrCAD Capture “网络名”相同,但是未连接或连接错误的解放方案之nodename的用法
【Flutter 问题系列第 72 篇】在 Flutter 中使用 Camera 插件拍的图片被拉伸问题的解决方案
ctfshow-web352,353(SSRF)
LeetCode+ 71 - 75
The programmer of Beipiao posted a post for help late at night: I am lonely when my girlfriend is gone
Minecraft 1.16.5 module development (51) tile entity
C# 读写自定义的Config文件
【编程强训2】排序子序列+倒置字符串
下载Xshell和Xftp
关系数据库如何工作
How to draw a product architecture diagram?
如何制作专属的VS Code主题
TCP/UDP 通信问题整理
Is it reliable to open an account on the compass with your mobile phone? Is there any potential safety hazard
Illusory and simple screen raindrop post-processing effect