Items with no label
3335 Discussions

To convert RGB information of depth obtained from D415 to corresponding depth information

SG_R
Beginner
2,361 Views

I have obtained depth image in .png format using real sense camera . I would like to read the actual depth values associated with each pixel using matlab. What i get to see is only the RGB (colour map corresponding to depth) values when displayed in matlab. Please instruct on how to convert the RGB values to depth information.

0 Kudos
1 Solution
MartyG
Honored Contributor III
355 Views

If you were just using the RealSense SDK to do the conversion then the procedure would be relatively straightforward.

 

https://github.com/IntelRealSense/librealsense/issues/2200

 

The need to do it with MATLAB is a complicating factor though. RealSense SDK functions can be interfaced with through the SDK's MATLAB wrapper if you are using Windows, though the number of example programs available for the wrapper is currently limited and so I do not have an example of how to get the depth values from the pixels of a PNG via the wrapper.

 

https://github.com/IntelRealSense/librealsense/tree/master/wrappers/matlab

 

View solution in original post

0 Kudos
4 Replies
MartyG
Honored Contributor III
355 Views

There is a product for MATLAB called the Image Processing Toolbox. It is not inexpensive, though it does have a 30 day free trial.

 

https://uk.mathworks.com/products/image.html

0 Kudos
SG_R
Beginner
355 Views

I would like to clarify . The depth image obtained from real sense is in RGB format. How to convert that to actual depth information ? that is my query. My working platform is MATLAB.

0 Kudos
MartyG
Honored Contributor III
356 Views

If you were just using the RealSense SDK to do the conversion then the procedure would be relatively straightforward.

 

https://github.com/IntelRealSense/librealsense/issues/2200

 

The need to do it with MATLAB is a complicating factor though. RealSense SDK functions can be interfaced with through the SDK's MATLAB wrapper if you are using Windows, though the number of example programs available for the wrapper is currently limited and so I do not have an example of how to get the depth values from the pixels of a PNG via the wrapper.

 

https://github.com/IntelRealSense/librealsense/tree/master/wrappers/matlab

 

0 Kudos
SG_R
Beginner
355 Views
Thank you...I shall try it out using real sense SDK On Thu 20 Dec, 2018, 15:41 Intel Forums <supportreplies@intel.com wrote:
0 Kudos
Reply