<?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 Hi shoichi, in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/How-can-I-get-distance/m-p/1039427#M45416</link>
    <description>&lt;P&gt;Hi shoichi,&lt;/P&gt;

&lt;P&gt;You can use the depth channel to get the XYZ coordinates of each point. You can then just use the Z component or get the norm of that vector to get the distance from the center of the camera to that point in space, depending on what you need.&lt;/P&gt;

&lt;P&gt;To get the XYZ coordinates in mm, you can just use QueryVertices from pxcprojection with your depth image:&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;/** 
    @brief Retrieve the vertices for the specific depth image. The vertices is a PXCPoint3DF32 array of depth 
    size width*height. The world coordiantes units are in mm.
    @param[in]  depth        The depth image instance.
    @param[out] vertices     The 3D vertices in World coordinates, to be returned.
    @return PXC_STATUS_NO_ERROR Successful execution.
*/ 
virtual pxcStatus PXCAPI QueryVertices(PXCImage *depth, PXCPoint3DF32 *vertices)=0;&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 07 Mar 2015 09:32:34 GMT</pubDate>
    <dc:creator>samontab</dc:creator>
    <dc:date>2015-03-07T09:32:34Z</dc:date>
    <item>
      <title>How can I get distance?</title>
      <link>https://community.intel.com/t5/Software-Archive/How-can-I-get-distance/m-p/1039426#M45415</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I want to use distance(z position), but I dont know how to get distance with x, y, position.&lt;/P&gt;

&lt;P&gt;Could you tell me, how to get ?&lt;/P&gt;

&lt;P&gt;regards,&lt;/P&gt;

&lt;P&gt;shoichi&lt;/P&gt;</description>
      <pubDate>Sat, 07 Mar 2015 01:03:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/How-can-I-get-distance/m-p/1039426#M45415</guid>
      <dc:creator>Shoichi_I_</dc:creator>
      <dc:date>2015-03-07T01:03:02Z</dc:date>
    </item>
    <item>
      <title>Hi shoichi,</title>
      <link>https://community.intel.com/t5/Software-Archive/How-can-I-get-distance/m-p/1039427#M45416</link>
      <description>&lt;P&gt;Hi shoichi,&lt;/P&gt;

&lt;P&gt;You can use the depth channel to get the XYZ coordinates of each point. You can then just use the Z component or get the norm of that vector to get the distance from the center of the camera to that point in space, depending on what you need.&lt;/P&gt;

&lt;P&gt;To get the XYZ coordinates in mm, you can just use QueryVertices from pxcprojection with your depth image:&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;/** 
    @brief Retrieve the vertices for the specific depth image. The vertices is a PXCPoint3DF32 array of depth 
    size width*height. The world coordiantes units are in mm.
    @param[in]  depth        The depth image instance.
    @param[out] vertices     The 3D vertices in World coordinates, to be returned.
    @return PXC_STATUS_NO_ERROR Successful execution.
*/ 
virtual pxcStatus PXCAPI QueryVertices(PXCImage *depth, PXCPoint3DF32 *vertices)=0;&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 07 Mar 2015 09:32:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/How-can-I-get-distance/m-p/1039427#M45416</guid>
      <dc:creator>samontab</dc:creator>
      <dc:date>2015-03-07T09:32:34Z</dc:date>
    </item>
    <item>
      <title>i think globalPosition has x,</title>
      <link>https://community.intel.com/t5/Software-Archive/How-can-I-get-distance/m-p/1039428#M45417</link>
      <description>&lt;P&gt;i think globalPosition has x, y, and z coordinate&lt;/P&gt;</description>
      <pubDate>Sat, 25 Apr 2015 16:09:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/How-can-I-get-distance/m-p/1039428#M45417</guid>
      <dc:creator>Thoriq_S_</dc:creator>
      <dc:date>2015-04-25T16:09:22Z</dc:date>
    </item>
    <item>
      <title>Thanks :)</title>
      <link>https://community.intel.com/t5/Software-Archive/How-can-I-get-distance/m-p/1039429#M45418</link>
      <description>&lt;P&gt;Thanks :)&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;samontab wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Hi shoichi,&lt;/P&gt;

&lt;P&gt;You can use the depth channel to get the XYZ coordinates of each point. You can then just use the Z component or get the norm of that vector to get the distance from the center of the camera to that point in space, depending on what you need.&lt;/P&gt;

&lt;P&gt;To get the XYZ coordinates in mm, you can just use QueryVertices from pxcprojection with your depth image:&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;/** 
    @brief Retrieve the vertices for the specific depth image. The vertices is a PXCPoint3DF32 array of depth 
    size width*height. The world coordiantes units are in mm.
    @param[in]  depth        The depth image instance.
    @param[out] vertices     The 3D vertices in World coordinates, to be returned.
    @return PXC_STATUS_NO_ERROR Successful execution.
*/ 
virtual pxcStatus PXCAPI QueryVertices(PXCImage *depth, PXCPoint3DF32 *vertices)=0;&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2015 03:52:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/How-can-I-get-distance/m-p/1039429#M45418</guid>
      <dc:creator>Adi_P_</dc:creator>
      <dc:date>2015-04-27T03:52:06Z</dc:date>
    </item>
  </channel>
</rss>

