Items with no label
3335 Discussions

How do I interpret the depth map in MATLAB?

BLohr
Beginner
1,387 Views

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?

0 Kudos
4 Replies
Anonymous
Not applicable
456 Views

Hi lordloh,

Please post your inquire to https://software.intel.com/en-us/forums/realsense Intel® RealSense™ SDK forum. Our Engineers in charge will follow your request.

Regards,

 

Mike C
BLohr
Beginner
456 Views

Thank you. Is the Developer forum for intel engineers only? May I have a link that I can access or follow the post?

Warm regards,

Bharath.

0 Kudos
BLohr
Beginner
456 Views

Thank you.

A copy of the post is now at https://software.intel.com/en-us/forums/realsense/topic/597890 How do I interpret the depth map in MATLAB?

0 Kudos
Anonymous
Not applicable
456 Views

Hi lordloh,

Thank you for your update. They will be answering your post soon.

Regards,

 

Mike C
0 Kudos
Reply