4 Replies Latest reply on Oct 27, 2015 7:39 AM by mikec_intel

    How do I interpret the depth map in MATLAB?


      I was able to view the image from the depth stream in MATLAB (using the webcam from the Hardware Support Package). However, it does not look the same way as it does in the Camera Explorer.

      What I see from MATLAB -


      I have also attached a depth.mat that contains the image in the variable "D".


      The image is returned as a 3 dimensional array of uint8. I assumed that the depth stream is a larger number that is broken in bits in each plane and tried bitshifting each plane and adding it to the next while taking care of the datatypes. Then displayed it using imagesc, but did not get a proper depth image.


      How do I properly interpret this image? Or, is there an alternate way to capture images in MATLAB?