7 Replies Latest reply on Apr 21, 2017 5:24 PM by Intel Corporation

    depth data from Realsense camera


      Hi all.


      Today, I tried getting depth data from RealSense depth image for estimating error range.

      I refer to this sample code  RealSense - Using LibRealSense and OpenCV to stream RGB and Depth Data | Intel® Software

      and added below code for save pixel data

         cv::FileStorage fs("data_capture.xml", cv::FileStorage::WRITE);

          fs << "depth" << ir ;

      finally got .xml file

      number of data is matched with number of pixels.

      but I printed contour graph using MATLAB but it got this one different from real scene


      So I searched and found out this documentation  and RSDataCollector.git

      RealSense - Getting started with the Depth Data provided by Intel® RealSense™ Technology | Intel® Software

      rssdk-capture-xdm/RSDataCollector.cpp at master · IntelRealSense/rssdk-capture-xdm · GitHub

      I think it can get depth value. however this script includes  pxcsensemanager.h

      It's not included librealsense.


      I'm not sure how  can I get depth value from each pixel

      please give me your help