<?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: How to get usable depth values for calculation? in Items with no label</title>
    <link>https://community.intel.com/t5/Items-with-no-label/How-to-get-usable-depth-values-for-calculation/m-p/624559#M13729</link>
    <description>&lt;P&gt;Hi Marty,&lt;/P&gt;&lt;P&gt;Thank you for your answer. &lt;A href="https://software.intel.com/sites/landingpage/realsense/camera-sdk/v1.1/documentation/html/index.html?projectdepthtocamera_pxcprojection.html"&gt;https://software.intel.com/sites/landingpage/realsense/camera-sdk/v1.1/documentation/html/index.html?projectdepthtocamera_pxcprojection.html&lt;/A&gt; &lt;I&gt;ProjectDepthToCamera&lt;/I&gt; seems to be a good choice. Unfortunately, I don't know how to call this function. I always get an error when I try to compile this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PXCMPoint3DF32[] pos_uvz;&lt;/P&gt;&lt;P&gt;PXCMPoint3DF32[] pos3d;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PXCMProjection.ProjectDepthToCamera(pos_uvz, pos3d);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am pretty sure I am using the function in a wrong way…&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Besides this, am I right when I assume that this function returns the XYZ world coordinates from XY depth picture coordinates? This means I put a captured 3D frame and XY coordinates (pixel) into that function and it returns the XYZ world coordinates? Maybe you can tell me an example project where I can see the use of a &lt;I&gt;PXCMProjection&lt;/I&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for supporting me!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;</description>
    <pubDate>Wed, 27 Dec 2017 09:55:26 GMT</pubDate>
    <dc:creator>MWalz1</dc:creator>
    <dc:date>2017-12-27T09:55:26Z</dc:date>
    <item>
      <title>How to get usable depth values for calculation?</title>
      <link>https://community.intel.com/t5/Items-with-no-label/How-to-get-usable-depth-values-for-calculation/m-p/624557#M13727</link>
      <description>&lt;P&gt;Dear Intel® RealSense Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am a mechanical engineer at a Chinese robot company. My current task is to get the Intel® RealSense R200 to work. Our use cases would be real-time obstacle avoidance and 3D mapping. So I am currently trying to get usable depth values from the camera's raw data, which I can use for calculation (e.g. X=420 Y=120 Z=1.23234). But unfortunately from the example source code files I can't figure out how to get access to these values. Maybe you can help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know that I need to initialize the camera with a valid configuration first. And I should use a separated thread for running the stream handling. So far I can follow the code. But my programming skills are lacking of deeper knowledge to understand how the image processing is working. Maybe you could explain it to me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you a lot! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2017 03:01:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/How-to-get-usable-depth-values-for-calculation/m-p/624557#M13727</guid>
      <dc:creator>MWalz1</dc:creator>
      <dc:date>2017-12-27T03:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to get usable depth values for calculation?</title>
      <link>https://community.intel.com/t5/Items-with-no-label/How-to-get-usable-depth-values-for-calculation/m-p/624558#M13728</link>
      <description>&lt;P&gt;In the '2016 R2' Windows SDK, the instruction ProjectDepthToCamera can be used to map depth coordinates to the world coordinates.&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?projectdepthtocamera_pxcprojection.html"&gt;https://software.intel.com/sites/landingpage/realsense/camera-sdk/v1.1/documentation/html/index.html?projectdepthtocamera_pxcprojection.html&lt;/A&gt; Intel® RealSense™ SDK 2016 R2 Documentation &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need the reverse of this process, ProjectCameraToDepth maps world coordinates to the depth.&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;</description>
      <pubDate>Wed, 27 Dec 2017 08:23:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/How-to-get-usable-depth-values-for-calculation/m-p/624558#M13728</guid>
      <dc:creator>MartyG</dc:creator>
      <dc:date>2017-12-27T08:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to get usable depth values for calculation?</title>
      <link>https://community.intel.com/t5/Items-with-no-label/How-to-get-usable-depth-values-for-calculation/m-p/624559#M13729</link>
      <description>&lt;P&gt;Hi Marty,&lt;/P&gt;&lt;P&gt;Thank you for your answer. &lt;A href="https://software.intel.com/sites/landingpage/realsense/camera-sdk/v1.1/documentation/html/index.html?projectdepthtocamera_pxcprojection.html"&gt;https://software.intel.com/sites/landingpage/realsense/camera-sdk/v1.1/documentation/html/index.html?projectdepthtocamera_pxcprojection.html&lt;/A&gt; &lt;I&gt;ProjectDepthToCamera&lt;/I&gt; seems to be a good choice. Unfortunately, I don't know how to call this function. I always get an error when I try to compile this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PXCMPoint3DF32[] pos_uvz;&lt;/P&gt;&lt;P&gt;PXCMPoint3DF32[] pos3d;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PXCMProjection.ProjectDepthToCamera(pos_uvz, pos3d);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am pretty sure I am using the function in a wrong way…&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Besides this, am I right when I assume that this function returns the XYZ world coordinates from XY depth picture coordinates? This means I put a captured 3D frame and XY coordinates (pixel) into that function and it returns the XYZ world coordinates? Maybe you can tell me an example project where I can see the use of a &lt;I&gt;PXCMProjection&lt;/I&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for supporting me!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2017 09:55:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/How-to-get-usable-depth-values-for-calculation/m-p/624559#M13729</guid>
      <dc:creator>MWalz1</dc:creator>
      <dc:date>2017-12-27T09:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to get usable depth values for calculation?</title>
      <link>https://community.intel.com/t5/Items-with-no-label/How-to-get-usable-depth-values-for-calculation/m-p/624560#M13730</link>
      <description>&lt;P&gt;You are very welcome, Martin!  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ProjectDepthToCamera would return the depth coordinates based on the world coordinates.  If you wanted the XYZ world coordinates, you would use the ProjectCameraToDepth instruction instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see your script is in the C#  language (PXCM), whereas a C++ script would be PXC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not know of a C#  script for ProjectDepthToCamera, but there is a C++ script.  You may be able to get some useful indicators from that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://software.intel.com/en-us/forums/realsense/topic/604114"&gt;https://software.intel.com/en-us/forums/realsense/topic/604114&lt;/A&gt; ProjectDepthToCamera &lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2017 18:56:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/How-to-get-usable-depth-values-for-calculation/m-p/624560#M13730</guid>
      <dc:creator>MartyG</dc:creator>
      <dc:date>2017-12-27T18:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to get usable depth values for calculation?</title>
      <link>https://community.intel.com/t5/Items-with-no-label/How-to-get-usable-depth-values-for-calculation/m-p/624561#M13731</link>
      <description>&lt;P&gt;Hi Marty,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far I think I got it now. But in the example he uses PCL (= &lt;A href="http://www.pointclouds.org/"&gt;http://www.pointclouds.org/&lt;/A&gt; Point Cloud Library), which seems to be already included into the RealSense SDK. When I try to compile the code I either can successfully include the RSSDK or the PCL. Both together seems to overwrite some of the other's functions. Any ideas? Can I use the RSSDK's PCL functions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also I now use C++ &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;</description>
      <pubDate>Thu, 28 Dec 2017 09:25:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/How-to-get-usable-depth-values-for-calculation/m-p/624561#M13731</guid>
      <dc:creator>MWalz1</dc:creator>
      <dc:date>2017-12-28T09:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to get usable depth values for calculation?</title>
      <link>https://community.intel.com/t5/Items-with-no-label/How-to-get-usable-depth-values-for-calculation/m-p/624562#M13732</link>
      <description>&lt;P&gt;The article below describes using point clouds with the RealSense SDK:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://software.intel.com/en-us/articles/intel-realsense-technology-and-the-point-cloud"&gt;https://software.intel.com/en-us/articles/intel-realsense-technology-and-the-point-cloud&lt;/A&gt; Archived - Intel® RealSense™ Technology and the Point Cloud | Intel® Software &lt;/P&gt;</description>
      <pubDate>Thu, 28 Dec 2017 12:00:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/How-to-get-usable-depth-values-for-calculation/m-p/624562#M13732</guid>
      <dc:creator>MartyG</dc:creator>
      <dc:date>2017-12-28T12:00:57Z</dc:date>
    </item>
  </channel>
</rss>

