1 Reply Latest reply on Aug 9, 2017 12:45 AM by MartyG

    Depth Array of  640x480 in mm from SR300

    Kashish

      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

        • 1. Re: Depth Array of  640x480 in mm from SR300
          MartyG

          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.

           

          Re: Question about depth data

           

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

           

          RS_STREAM_COLOR_ALIGNED_TO_DEPTH