<?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 Difference between QueryFaceAverageDepth and HeadPosition.HeadCenter.z in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Difference-between-QueryFaceAverageDepth-and-HeadPosition/m-p/1107653#M70948</link>
    <description>&lt;P&gt;Hello there,&lt;/P&gt;

&lt;P&gt;i'm working on a facetracking with the RS300 Camera and want to measure the distance between the camera and the face.&lt;/P&gt;

&lt;P&gt;Now there are, when i figured out right, two different ways. I can on the one side use QueryFaceAverageDepth(out depth) on the PXCMFaceData.DetectionData&lt;/P&gt;

&lt;PRE class="brush:csharp;"&gt;PXCMFaceData.Face face = faceData.QueryFaceByIndex(i);
PXCMFaceData.DetectionData faceDetectionData = face.QueryDetection();
faceDetectionData.QueryAverageFaceDepth(out depth);&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;On the other side there is the possibility to get the data via the pose like this:&lt;/P&gt;

&lt;PRE class="brush:csharp;"&gt;PXCMFaceData.Face face = faceData.QueryFaceByIndex(i);
PXCMFaceData.PoseData pose = face.QueryPose();
PXCMFaceData.HeadPosition head;
pose.QueryHeadPosition(out head);
float depth = head.headCenter.z;&lt;/PRE&gt;

&lt;P&gt;Can you please tell me what the difference is of these to ways and maybe what kind of data i get with what of those possibilities?&lt;/P&gt;

&lt;P&gt;I'm also interested in which units both ways provide their data.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Thank you very much for your help.&lt;/P&gt;

&lt;P&gt;Kind regards&lt;/P&gt;</description>
    <pubDate>Wed, 27 Apr 2016 09:51:16 GMT</pubDate>
    <dc:creator>Michael_H_9</dc:creator>
    <dc:date>2016-04-27T09:51:16Z</dc:date>
    <item>
      <title>Difference between QueryFaceAverageDepth and HeadPosition.HeadCenter.z</title>
      <link>https://community.intel.com/t5/Software-Archive/Difference-between-QueryFaceAverageDepth-and-HeadPosition/m-p/1107653#M70948</link>
      <description>&lt;P&gt;Hello there,&lt;/P&gt;

&lt;P&gt;i'm working on a facetracking with the RS300 Camera and want to measure the distance between the camera and the face.&lt;/P&gt;

&lt;P&gt;Now there are, when i figured out right, two different ways. I can on the one side use QueryFaceAverageDepth(out depth) on the PXCMFaceData.DetectionData&lt;/P&gt;

&lt;PRE class="brush:csharp;"&gt;PXCMFaceData.Face face = faceData.QueryFaceByIndex(i);
PXCMFaceData.DetectionData faceDetectionData = face.QueryDetection();
faceDetectionData.QueryAverageFaceDepth(out depth);&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;On the other side there is the possibility to get the data via the pose like this:&lt;/P&gt;

&lt;PRE class="brush:csharp;"&gt;PXCMFaceData.Face face = faceData.QueryFaceByIndex(i);
PXCMFaceData.PoseData pose = face.QueryPose();
PXCMFaceData.HeadPosition head;
pose.QueryHeadPosition(out head);
float depth = head.headCenter.z;&lt;/PRE&gt;

&lt;P&gt;Can you please tell me what the difference is of these to ways and maybe what kind of data i get with what of those possibilities?&lt;/P&gt;

&lt;P&gt;I'm also interested in which units both ways provide their data.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Thank you very much for your help.&lt;/P&gt;

&lt;P&gt;Kind regards&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2016 09:51:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Difference-between-QueryFaceAverageDepth-and-HeadPosition/m-p/1107653#M70948</guid>
      <dc:creator>Michael_H_9</dc:creator>
      <dc:date>2016-04-27T09:51:16Z</dc:date>
    </item>
  </channel>
</rss>

