在MATLAB中处理Kinect深度数据 [英] Processing Kinect Depth data in MATLAB

查看:2125
本文介绍了在MATLAB中处理Kinect深度数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我使用Kinect获得一些深度图像,他们现在保存。所以,如果我想处理这个深度图像以获得Z值(即从对象到Kinect的距离),我应该怎么做?



我一直在做一些在线研究发现,我需要将图像保存为深度值存储的16位深度图像,而不是一个只能存储256个值的8位深度图像。基于:在Matlab中保存Kinect深度图像

但我还是不太明白我得到的形象。当我使用imread并使用数据光标来查看单个像素时,我只获取XY坐标和索引值。指数值似乎不代表以毫米为单位的距离。



任何人都可以清除这部分。
感谢。

解决方案

看起来像你正在读取一个索引的图像 imread / code>



请尝试:

  [idx ,map] = imread('yourImage'); 
RGB = ind2rgb(idx,map);

并查看RGB是否包含正确的值。


So I used Kinect to obtain some depth images and they are now saved. So if I want to process this depth image to get the Z value (i.e. the distance from the object to the Kinect) how should I do that?

I have been doing some research online and found out that I need to be saving the image as a 16bit depth image for the depth values to be stored instead of an 8 bit depth image which can only store up to 256 values. based on: Save Kinect depth image in Matlab?

But I still do not quite understand the image I am getting. When I use imread and uses the data cursor to look at the individual pixels, I only obtain the XY coordinates and an Index value. the index value does not seem to represent the distance in mm.

Can anyone clear this part for me please. Thanks.

解决方案

looks like your are reading an indexed image with imread()

try this:

[idx, map] = imread('yourImage');
RGB = ind2rgb(idx, map);

and see if RGB contains the correct value.

这篇关于在MATLAB中处理Kinect深度数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆