<?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 Depth stream To 3D position in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Depth-stream-To-3D-position/m-p/1030572#M41856</link>
    <description>&lt;P&gt;I wanto use the&amp;nbsp;every Pixel of&amp;nbsp;Depth stream&amp;nbsp;to get&amp;nbsp;3D position which include Dist x,y,z and Degrees X,Y,Z. Dose the SDK include this &lt;SPAN&gt;algorithm?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 22 Dec 2014 03:39:09 GMT</pubDate>
    <dc:creator>Jian_l_2</dc:creator>
    <dc:date>2014-12-22T03:39:09Z</dc:date>
    <item>
      <title>Depth stream To 3D position</title>
      <link>https://community.intel.com/t5/Software-Archive/Depth-stream-To-3D-position/m-p/1030572#M41856</link>
      <description>&lt;P&gt;I wanto use the&amp;nbsp;every Pixel of&amp;nbsp;Depth stream&amp;nbsp;to get&amp;nbsp;3D position which include Dist x,y,z and Degrees X,Y,Z. Dose the SDK include this &lt;SPAN&gt;algorithm?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Dec 2014 03:39:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Depth-stream-To-3D-position/m-p/1030572#M41856</guid>
      <dc:creator>Jian_l_2</dc:creator>
      <dc:date>2014-12-22T03:39:09Z</dc:date>
    </item>
    <item>
      <title>Yes, you can access depth</title>
      <link>https://community.intel.com/t5/Software-Archive/Depth-stream-To-3D-position/m-p/1030573#M41857</link>
      <description>&lt;P&gt;Yes, you can access depth data of all pixels. Please refer to the background segmentation tutorial, and specially the sample code&amp;nbsp;at&lt;/P&gt;

&lt;P&gt;&lt;A href="https://community.intel.com/legacyfs/online/drupal_files/managed/66/9c/Background_Segmentation.pdf"&gt;https://software.intel.com/sites/default/files/managed/66/9c/Background_Segmentation.pdf&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Dec 2014 18:10:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Depth-stream-To-3D-position/m-p/1030573#M41857</guid>
      <dc:creator>Pubudu-Silva_Intel</dc:creator>
      <dc:date>2014-12-22T18:10:48Z</dc:date>
    </item>
    <item>
      <title>Hi, I apologize, I think the</title>
      <link>https://community.intel.com/t5/Software-Archive/Depth-stream-To-3D-position/m-p/1030574#M41858</link>
      <description>&lt;P&gt;Hi, I apologize, I think the link Pudubu shared is not helpful. &amp;nbsp;To transform the depth image values to 3D coordinates, check the documentation for the PXCProjection interface:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://software.intel.com/sites/landingpage/realsense/camera-sdk/2014gold/documentation/html/index.html?pxcprojection.html" target="_blank"&gt;https://software.intel.com/sites/landingpage/realsense/camera-sdk/2014gold/documentation/html/index.html?pxcprojection.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;T&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;ry this (pseudocode):&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;PXCProjection * projection =&amp;nbsp;sen&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;semanager-&amp;gt;QueryCaptureManager()-&amp;gt;QueryDevice()-&amp;gt;CreateProjection();&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;PXCPoint3DF32 depthCoords[width * height * 3];&lt;/P&gt;

&lt;P&gt;while(loop) {&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;sensemanager-&amp;gt;AcquireFrame();&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;PXCCapture::Sample * sample = sensemanger-&amp;gt;QuerySample();&lt;/P&gt;

&lt;P&gt;PXCImage * depthMap = sample-&amp;gt;depth;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="line-height: 19.5120010375977px;"&gt;projection-&amp;gt;QueryVertices(depthMap,(PXCPoint3DF32 *) depthCoords);&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="line-height: 19.5120010375977px;"&gt;//Do something with your coordinates//&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="line-height: 19.5120010375977px;"&gt;sensemanager-&amp;gt;ReleaseFrame();&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;}&lt;/P&gt;

&lt;P&gt;Your 3D points will be in the depthCoords array, packed as [x,y,z] in millimeters, with one set of 3 floats for each of the original depth map pixels, in "raster order", and using the coordinate system described here:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://software.intel.com/sites/landingpage/realsense/camera-sdk/2014gold/documentation/html/index.html?manuals_coordinate_systems.html" target="_blank"&gt;https://software.intel.com/sites/landingpage/realsense/camera-sdk/2014gold/documentation/html/index.html?manuals_coordinate_systems.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Note: &amp;nbsp;many of the resulting coordinates will be zeros, but that only means that those pixels were either saturated or too far for detection. &amp;nbsp;There will be usable depth points deeper into the array.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Hope this helps. &amp;nbsp;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Dec 2014 21:42:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Depth-stream-To-3D-position/m-p/1030574#M41858</guid>
      <dc:creator>Jonathan_M_Intel</dc:creator>
      <dc:date>2014-12-22T21:42:17Z</dc:date>
    </item>
  </channel>
</rss>

