about read depth information from Kinect

1 view (last 30 days)
LIU WEIHUA
LIU WEIHUA on 31 Jan 2012
I capture a few depth images from Kinect with format of .tif. However,when I use data cursor to get the depth information, it shows different type of number, it indeed confuse me. I put two different read result as follow:
First type shows:
X:170 Y 320
index:1.245e+004
RGB: 0.404 0.404 0.404
Second type shows:
X: 172 Y 132
RGB: 159,0,0
I just wonder what the meaning of the index and the two type of RGB value? Dose the RGB value means the Kinect disparity or something else?
Thank you very much for whom read and help!
  1 Comment
Laila Kazemi
Laila Kazemi on 13 Jun 2013
hey how do u get these values? im really new to this, it would help a lot if let me know your procedure

Sign in to comment.

Answers (2)

Walter Roberson
Walter Roberson on 31 Jan 2012
When data cursor mode shows an index, then the image being displayed is a pseudo-color image, and the index that is shown is the color number that is stored for that point. The RGB values that are shown are the Red, Green, and Blue intensities associated with that color number in the current color map; if you were to apply a different colormap then the color index would not change but the RGB values would. The RGB values are in the range 0 to 1, fully-off to fully-on.
When the data cursor mode does not show an index, then the image being displayed is a true-color image, and the RGB values that are shown are the Red, Green, and Blue intensities associated with that particular point. The RGB values will be in the range 0 to 1 if the color information for the image was stored as single precision or double precision. RGB values in the range 0 to 255 will be integral values, and indicate that the color information for the image was stored as unsigned 8 bit integers, 0 for fully-off and 255 for fully-on. If you see integral values above 255, then the color information for the image was stored as unsigned 16 bit numbers, 0 for fully-off and 65535 for fully-on.

Yan
Yan on 30 Jun 2013
how do u get the data? can you give me the code. thank you very much.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!