<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Question about depth data in Items with no label</title>
    <link>https://community.intel.com/t5/Items-with-no-label/Question-about-depth-data/m-p/509722#M6533</link>
    <description>&lt;P&gt;According to the discussion I linked to above, somebody believed that RealSense's depth scan is 16 bit but when it is converted to .mat it becomes an 8 bit (8uc1) image.  That may be why you are getting a black screen in 16uc1 mode.&lt;/P&gt;</description>
    <pubDate>Sat, 29 Jul 2017 14:00:06 GMT</pubDate>
    <dc:creator>MartyG</dc:creator>
    <dc:date>2017-07-29T14:00:06Z</dc:date>
    <item>
      <title>Question about depth data</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Question-about-depth-data/m-p/509719#M6530</link>
      <description>&lt;P&gt;I am trying to copy the depth data to an opencv Mat image. Below are my processing steps:&lt;/P&gt;&lt;P&gt;    1st, I get the depth image using sdk;&lt;/P&gt;&lt;P&gt;    2nd, I get the depth image imageData using AcquireAccess;&lt;/P&gt;&lt;P&gt;    3rd, I get the depth data pointer in planes[0] and transform it into ushort type;&lt;/P&gt;&lt;P&gt;    4th, I copy values of every pixels to the correponding pixel of an opencv Mat image;&lt;/P&gt;&lt;P&gt;but in result,the opencv Mat image is different from the depth image, I tried opencv Mat image either in 8UC1 type or 16UC1 type, the result is always different.&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;result is like the picture above,the left one is depth image showed by UtilRender, the right one is opencv Mat image in 8UC1 type showed by imshow() .&lt;/P&gt;</description>
      <pubDate>Sat, 29 Jul 2017 13:40:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Question-about-depth-data/m-p/509719#M6530</guid>
      <dc:creator>秦文翔</dc:creator>
      <dc:date>2017-07-29T13:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: Question about depth data</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Question-about-depth-data/m-p/509720#M6531</link>
      <description>&lt;P&gt;There was a similar case a couple of weeks ago with a conversion to .mat that looked different to the original.  I do not think there was a clear and definitive solution in that case, but you may see something that is helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;</description>
      <pubDate>Sat, 29 Jul 2017 13:46:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Question-about-depth-data/m-p/509720#M6531</guid>
      <dc:creator>MartyG</dc:creator>
      <dc:date>2017-07-29T13:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: Question about depth data</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Question-about-depth-data/m-p/509721#M6532</link>
      <description>&lt;P&gt;And if I use 16UC1 type, it will be like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know what the problem is?&lt;/P&gt;</description>
      <pubDate>Sat, 29 Jul 2017 13:46:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Question-about-depth-data/m-p/509721#M6532</guid>
      <dc:creator>秦文翔</dc:creator>
      <dc:date>2017-07-29T13:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: Question about depth data</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Question-about-depth-data/m-p/509722#M6533</link>
      <description>&lt;P&gt;According to the discussion I linked to above, somebody believed that RealSense's depth scan is 16 bit but when it is converted to .mat it becomes an 8 bit (8uc1) image.  That may be why you are getting a black screen in 16uc1 mode.&lt;/P&gt;</description>
      <pubDate>Sat, 29 Jul 2017 14:00:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Question-about-depth-data/m-p/509722#M6533</guid>
      <dc:creator>MartyG</dc:creator>
      <dc:date>2017-07-29T14:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: Question about depth data</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Question-about-depth-data/m-p/509723#M6534</link>
      <description>&lt;P&gt;Hi MartyG&lt;/P&gt;&lt;P&gt;Thank you for your reply. It is helpful.&lt;/P&gt;&lt;P&gt;Do you mean that, I get the correct depth value, and the difference between two images is because of the different way of display between UtilRender and imshow()?&lt;/P&gt;&lt;P&gt;In fact, I want to calculate the 3D distance between 2 points. To get the 3D coordinates of points, I need the depth value of points. But when I test calculating, there will always be an error about 20%. So I wondering if I get the correct depth value of points.&lt;/P&gt;&lt;P&gt;Do you know about this?&lt;/P&gt;</description>
      <pubDate>Sun, 30 Jul 2017 08:11:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Question-about-depth-data/m-p/509723#M6534</guid>
      <dc:creator>秦文翔</dc:creator>
      <dc:date>2017-07-30T08:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: Question about depth data</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Question-about-depth-data/m-p/509724#M6535</link>
      <description>&lt;P&gt;My knowledge of RealSense to mat conversion is not deep enough to be able to comment on the difference between UtilRender and imshow(), unfortunately.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This discussion, with insights from RealSense stream programming expert jb455, may help you work out how to measure the distance between two points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Sun, 30 Jul 2017 08:39:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Question-about-depth-data/m-p/509724#M6535</guid>
      <dc:creator>MartyG</dc:creator>
      <dc:date>2017-07-30T08:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: Question about depth data</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Question-about-depth-data/m-p/509725#M6536</link>
      <description>&lt;P&gt;Thank you very much! &lt;/P&gt;&lt;P&gt;I'll search for more information about calculating distance.&lt;/P&gt;&lt;P&gt;And welcome everybody to communicate with me about this problem.&lt;/P&gt;</description>
      <pubDate>Sun, 30 Jul 2017 13:01:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Question-about-depth-data/m-p/509725#M6536</guid>
      <dc:creator>秦文翔</dc:creator>
      <dc:date>2017-07-30T13:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: Question about depth data</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Question-about-depth-data/m-p/509726#M6537</link>
      <description>&lt;P&gt;You're very welcome.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can get the world coordinates of the depth using the ProjectCameraToDepth instruction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://software.intel.com/sites/landingpage/realsense/camera-sdk/v1.1/documentation/html/index.html?projectcameratodepth_pxcprojection.html"&gt;https://software.intel.com/sites/landingpage/realsense/camera-sdk/v1.1/documentation/html/index.html?projectcameratodepth_pxcprojection.html&lt;/A&gt; Intel® RealSense™ SDK 2016 R2 Documentation &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, as jb455 said in the discussion I linked to, you'll need to pick the points to measure between.&lt;/P&gt;</description>
      <pubDate>Sun, 30 Jul 2017 13:12:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Question-about-depth-data/m-p/509726#M6537</guid>
      <dc:creator>MartyG</dc:creator>
      <dc:date>2017-07-30T13:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: Question about depth data</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Question-about-depth-data/m-p/509727#M6538</link>
      <description>&lt;P&gt;That's exactly what I used. I pick 2 points to test each time. And get the world coordinates by projectdepthtocamera. Here is my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# include &lt;/P&gt;&lt;P&gt;# include &lt;/P&gt;&lt;P&gt;# include "pxcsensemanager.h"&lt;/P&gt;&lt;P&gt;# include "util_render.h"  //SDK provided utility class used for rendering (packaged in libpxcutils.lib)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# include &lt;/P&gt;&lt;P&gt;# include &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# include &lt;/P&gt;&lt;P&gt;# include &lt;/P&gt;&lt;P&gt;# include &lt;/P&gt;&lt;P&gt;# include &lt;/P&gt;&lt;P&gt;# include &lt;/P&gt;&lt;P&gt;# include &lt;/P&gt;&lt;P&gt;# include &lt;/P&gt;&lt;P&gt;# include &lt;/P&gt;&lt;P&gt;# include &lt;/P&gt;&lt;P&gt;# include &lt;/P&gt;&lt;P&gt;# include "pxcsession.h"&lt;/P&gt;&lt;P&gt;# include "pxccapture.h"&lt;/P&gt;&lt;P&gt;# include "util_render.h"&lt;/P&gt;&lt;P&gt;# include "util_cmdline.h"&lt;/P&gt;&lt;P&gt;# include "pxcprojection.h"&lt;/P&gt;&lt;P&gt;# include "pxcmetadata.h"&lt;/P&gt;&lt;P&gt;# include "util_cmdline.h"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using namespace std;&lt;/P&gt;&lt;P&gt;using namespace cv;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Point fp = Point(-1, -1);&lt;/P&gt;&lt;P&gt;Point sp = Point(-1, -1);&lt;/P&gt;&lt;P&gt;cv::Mat rgb;&lt;/P&gt;&lt;P&gt;cv::Mat dep;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void GetWorldCoordinates(Point p1, Point p2, ushort* depth_data, PXCProjection *projection) //get the world coordinates and distance&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;PXCPoint3DF32 depthdata, data3d1, data3d2;&lt;/P&gt;&lt;P&gt;int x1 = p1.x;&lt;/P&gt;&lt;P&gt;int y1 = p1.y;&lt;/P&gt;&lt;P&gt;depthdata.x = x1;&lt;/P&gt;&lt;P&gt;depthdata.y = y1;&lt;/P&gt;&lt;P&gt;depthdata.z = depth_data[y1 * 640 + x1];&lt;/P&gt;&lt;P&gt;projection-&amp;gt;ProjectDepthToCamera(1, &amp;amp;depthdata, &amp;amp;data3d1);&lt;/P&gt;&lt;P&gt;int x2 = p2.x;&lt;/P&gt;&lt;P&gt;int y2 = p2.y;&lt;/P&gt;&lt;P&gt;depthdata.x = x2;&lt;/P&gt;&lt;P&gt;depthdata.y = y2;&lt;/P&gt;&lt;P&gt;depthdata.z = depth_data[y2 * 640 + x2];&lt;/P&gt;&lt;P&gt;projection-&amp;gt;ProjectDepthToCamera(1, &amp;amp;depthdata, &amp;amp;data3d2);&lt;/P&gt;&lt;P&gt;double distance = sqrt((data3d1.x - data3d2.x)*(data3d1.x - data3d2.x) + (data3d1.y - data3d2.y)*(data3d1.y - data3d2.y) +&lt;/P&gt;&lt;P&gt;(data3d1.z - data3d2.z)*(data3d1.z - data3d2.z));&lt;/P&gt;&lt;P&gt;cout &amp;lt;&amp;lt; p1.x &amp;lt;&amp;lt; " " &amp;lt;&amp;lt; p1.y &amp;lt;&amp;lt; endl;&lt;/P&gt;&lt;P&gt;cout &amp;lt;&amp;lt; p2.x &amp;lt;&amp;lt; " " &amp;lt;&amp;lt; p2.y &amp;lt;&amp;lt; endl;&lt;/P&gt;&lt;P&gt;cout &amp;lt;&amp;lt; data3d1.x &amp;lt;&amp;lt; " " &amp;lt;&amp;lt; data3d1.y &amp;lt;&amp;lt; " " &amp;lt;&amp;lt; data3d1.z &amp;lt;&amp;lt; endl;&lt;/P&gt;&lt;P&gt;cout &amp;lt;&amp;lt; data3d2.x &amp;lt;&amp;lt; " " &amp;lt;&amp;lt; data3d2.y &amp;lt;&amp;lt; " " &amp;lt;&amp;lt; data3d2.z &amp;lt;&amp;lt; endl;&lt;/P&gt;&lt;P&gt;cout &amp;lt;&amp;lt; distance &amp;lt;&amp;lt; endl &amp;lt;&amp;lt; endl;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void on_mouse(int event, int x, int y, int flags, void *ustc)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;if (event == CV_EVENT_LBUTTONDOWN)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;fp = Point(x, y);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;else if (event == CV_EVENT_LBUTTONUP)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;sp = Point(x, y);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;int wmain(int argc, WCHAR* argv[])&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;cout &amp;lt;&amp;lt; "Intel Realsense SDK Hacking using Opencv" &amp;lt;&amp;lt; endl;&lt;/P&gt;&lt;P&gt;cout &amp;lt;&amp;lt; "Intel Realsense Camera SDK Frame Capture in opencv Mat Variable       -- by Deepak" &amp;lt;&amp;lt; endl;&lt;/P&gt;&lt;P&gt;cout &amp;lt;&amp;lt; "Compiled with OpenCV version " &amp;lt;&amp;lt; CV_VERSION &amp;lt;&amp;lt; endl &amp;lt;&amp;lt; endl;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PXCSenseManager *psm = 0;&lt;/P&gt;&lt;P&gt;psm = PXCSenseManager::CreateInstance();&lt;/P&gt;&lt;P&gt;if (!psm) {&lt;/P&gt;&lt;P&gt;wprintf_s(L"Unable to create the PXCSenseManager\n");&lt;/P&gt;&lt;P&gt;return 1;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;psm-&amp;gt;EnableStream(PXCCapture::STREAM_TYPE_COLOR, 640, 480); //depth resolution&lt;/P&gt;&lt;P&gt;psm-&amp;gt;EnableStream(PXCCapture::STREAM_TYPE_DEPTH, 640, 480); //depth resolution&lt;/P&gt;&lt;P&gt;psm-&amp;gt;Init();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PXCCaptureManager *cm = psm-&amp;gt;QueryCaptureManager();&lt;/P&gt;&lt;P&gt;PXCCapture::Device *device = cm-&amp;gt;QueryDevice();&lt;/P&gt;&lt;P&gt;PXCProjection *projection = device-&amp;gt;CreateProjection();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UtilRender color_render(L"Color Stream");&lt;/P&gt;&lt;P&gt;UtilRender depth_render(L"Depth Stream");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/////////// OPENCV&lt;/P&gt;&lt;P&gt;IplImage *image = 0;&lt;/P&gt;&lt;P&gt;CvSize gab_size;&lt;/P&gt;&lt;P&gt;gab_size.height = 480;&lt;/P&gt;&lt;P&gt;gab_size.width = 640;&lt;/P&gt;&lt;P&gt;image = cvCreateImage(gab_size, 8, 3);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PXCImage::ImageData data;&lt;/P&gt;&lt;P&gt;PXCImage::ImageData data_depth;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;unsigned char *rgb_data;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/////&lt;/P&gt;&lt;P&gt;for (;;)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;if (psm-&amp;gt;AcquireFrame(true)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PXCCapture::Sample *sample = psm-&amp;gt;QuerySample();&lt;/P&gt;&lt;P&gt;PXCImage *colorIm, *depthIm;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// retrieve the image or frame by type from the sample&lt;/P&gt;&lt;P&gt;colorIm = sample-&amp;gt;color;&lt;/P&gt;&lt;P&gt;depthIm = sample-&amp;gt;depth;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PXCImage *color_image = colorIm;&lt;/P&gt;&lt;P&gt;PXCImage *depth_image0 = depthIm;&lt;/P&gt;&lt;P&gt;PXCImage *depth_image;&lt;/P&gt;&lt;P&gt;depth_image = projection-&amp;gt;CreateDepthImageMappedToColor(depth_image0, color_image);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;color_image-&amp;gt;AcquireAccess(PXCImage::ACCESS_READ_WRITE, PXCImage::PIXEL_FORMAT_RGB24, &amp;amp;data);&lt;/P&gt;&lt;P&gt;depth_image-&amp;gt;AcquireAccess(PXCImage::ACCESS_READ_WRITE, &amp;amp;data_depth);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgb_data = data.planes[0];&lt;/P&gt;&lt;P&gt;for (int y = 0; y&amp;lt;480; y++)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;for (int x = 0; x&amp;lt;640; x++)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;for (int k = 0; k&amp;lt;3; k++)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;image-&amp;gt;imageData[y * 640 * 3 + x * 3 + k] = rgb_data[y * 640 * 3 + x * 3 + k];&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ushort* depth_data = (ushort*)data_depth.planes[0]; //&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;color_image-&amp;gt;ReleaseAccess(&amp;amp;data);&lt;/P&gt;&lt;P&gt;depth_image-&amp;gt;ReleaseAccess(&amp;amp;data_depth);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgb = cv::Mat(image);&lt;/P&gt;&lt;P&gt;imshow("Color_cv2", rgb);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//////////////////////translate points from depth coordinates to world coordinates and calculate distance/////////////////////////&lt;/P&gt;&lt;P&gt;setMouseCallback("Color_cv2", on_mouse, 0);&lt;/P&gt;&lt;P&gt;GetWorldCoordinates(fp, sp, depth_data, projection);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (cvWaitKey(10) == 54)&lt;/P&gt;&lt;P&gt;break;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//////&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (!color_render.RenderFrame(color_image)) break;&lt;/P&gt;&lt;P&gt;if (!depth_render.RenderFrame(depth_image)) break;&lt;/P&gt;&lt;P&gt;psm-&amp;gt;ReleaseFrame();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;cvReleaseImage(&amp;amp;image);&lt;/P&gt;&lt;P&gt;projection-&amp;gt;Release();&lt;/P&gt;&lt;P&gt;psm-&amp;gt;Release();&lt;/P&gt;&lt;P&gt;return 0;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;</description>
      <pubDate>Sun, 30 Jul 2017 14:04:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Question-about-depth-data/m-p/509727#M6538</guid>
      <dc:creator>秦文翔</dc:creator>
      <dc:date>2017-07-30T14:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: Question about depth data</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Question-about-depth-data/m-p/509728#M6539</link>
      <description>&lt;P&gt;So this brings us back to the very first entry in your message, I believe, where you were using the script above but were finding that there are differences between the images in the RealSense and OpenCV .mat versions of what the camera is seeing?  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;During further research, I found another user who had RealSense / .mat image difference, and offered some code that they said solved the problem in their particular case.  Their solution is in the second comment down, highlighted as the 'correct answer'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Sun, 30 Jul 2017 14:23:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Question-about-depth-data/m-p/509728#M6539</guid>
      <dc:creator>MartyG</dc:creator>
      <dc:date>2017-07-30T14:23:00Z</dc:date>
    </item>
  </channel>
</rss>

