Processing Kinect Depth Data in MATLAB

So, I used Kinect to get 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 do I do it?

I did some research on the internet and found out that I need to store the image as a 16-bit depth image for the depth values ​​to be stored instead of an 8-bit depth image that can only store up to 256 values. based on: Save Kinect Depth Image in Matlab?

But I still don't quite understand the image I am getting. When I use imread and use the data cursor to view individual pixels, I only get the XY coordinates and index value. the index value does not appear to reflect the distance in mm.

Can someone clear this part for me please. Thank.

+3


source to share


1 answer


it looks like you are reading the indexed image with imread()

try this:



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

      

and see if RGB contains the correct value.

0


source







All Articles