Items with no label
3338 讨论

Depth Array of 640x480 in mm from SR300

KDhal
初学者
1,494 次查看

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 项奖励
1 回复
MartyG
名誉分销商 III
318 次查看

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 项奖励
回复