Items with no label
3338 Discussions

how can i change the resolution of the depth image or the rgb image using the matlab sdk?

msala16
Beginner
2,228 Views

from the depth example when we take an image using the matlab sdk, we got the depth image resolution 1280x720 and the rgb image 640x480, how can i control the resolution? (using the viewer tool there is a lot of resolution options...)

 

Thanks.

0 Kudos
1 Reply
MartyG
Honored Contributor III
1,002 Views

I wrote an answer recently about configuring camera settings via the MATLAB wrapper of the SDK. Unfortunately it seems to have been lost when Intel switched to a new forum website last week. I will try to replicate the basic details from memory.

 

In the MATLAB wrapper of the RealSense SDK 2.0 SDK, configuration instructions can be set up using a 2-step process.

 

  1. Define the parameters of an instruction using a command called validateattributes
  2. Use a cfg configuration instruction in the line after the validateattributes statement to set up a configuration for a particular camera setting.

 

On lines 4 and 5 of the MATLAB wrapper example script linked to below, you can see an example of a setup using this pairing of validateattributes and cfg:

 

https://github.com/IntelRealSense/librealsense/blob/master/wrappers/matlab/rosbag_example.m

 

I would recommend posting a question at the RealSense GitHub site, where the RealSense engineers and developers reside, as they have deep knowledge of the RealSense SDK's code. You can post there by going to the link below and clicking the New Issues button.

 

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

 

 

0 Kudos
Reply