Items with no label
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
3338 Discussions

Depth Array of 640x480 in mm from SR300

KDhal
Beginner
1,515 Views

How do I get depth array from SR300 without any UI. I want a depth array in 30fps. What C++ code should I use?? And What header files are required to run that C++ code ??

Regards,

Kashish Dhal

0 Kudos
1 Reply
MartyG
Honored Contributor III
339 Views

If you are using the RealSense SDK in Windows then you could use this instruction to project world coordinates to the depth coordinates:

ProjecttCameraToDepth

Or use this instruction to project depth coordinates to the world coordinates.

ProjectDepthToCamera

You can set your stream to 640x480 resolution with:

sm->EnableStream(PXCCapture::STREAM_TYPE_COLOR, 640, 480, 30);

The values 640, 480 of course refer to a resolution of 640x480, whilst the third value in the sequence (30) sets the FPS of the stream.

Below is a discussion that has a script for ProjectDepthToCamera that has headers in it. This may be a useful guide.

If you are using the Librealsense SDK instead of the RealSense SDK then you could use this instruction:

RS_STREAM_COLOR_ALIGNED_TO_DEPTH

0 Kudos
Reply