Processing Kinect Depth data in MATLAB

别说谁变了你拦得住时间么 提交于 2019-12-10 22:09:31

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/25757940/processing-kinect-depth-data-in-matlab

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!