<?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 query device &amp; vertices in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/query-device-vertices/m-p/1014987#M35637</link>
    <description>&lt;P&gt;Dear All,&lt;/P&gt;

&lt;P&gt;I'm using c# interface&lt;/P&gt;

&lt;P&gt;I need to get the x,y,z &amp;nbsp;coordinates of &amp;nbsp;22 points in hand module.&lt;/P&gt;

&lt;P&gt;I found that query vertices is the option to do that.&lt;/P&gt;

&lt;P&gt;Can some one help me with- the code to create a instance for pxcmcapture.device &amp;nbsp;and help me with the required code to get vertices using queryvertices function.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I am trying to develope hands console(which is in cpp &amp;nbsp;in sample browser) in &amp;nbsp;c# environment&lt;/P&gt;</description>
    <pubDate>Mon, 12 Oct 2015 14:06:54 GMT</pubDate>
    <dc:creator>agund4</dc:creator>
    <dc:date>2015-10-12T14:06:54Z</dc:date>
    <item>
      <title>query device &amp; vertices</title>
      <link>https://community.intel.com/t5/Software-Archive/query-device-vertices/m-p/1014987#M35637</link>
      <description>&lt;P&gt;Dear All,&lt;/P&gt;

&lt;P&gt;I'm using c# interface&lt;/P&gt;

&lt;P&gt;I need to get the x,y,z &amp;nbsp;coordinates of &amp;nbsp;22 points in hand module.&lt;/P&gt;

&lt;P&gt;I found that query vertices is the option to do that.&lt;/P&gt;

&lt;P&gt;Can some one help me with- the code to create a instance for pxcmcapture.device &amp;nbsp;and help me with the required code to get vertices using queryvertices function.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I am trying to develope hands console(which is in cpp &amp;nbsp;in sample browser) in &amp;nbsp;c# environment&lt;/P&gt;</description>
      <pubDate>Mon, 12 Oct 2015 14:06:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/query-device-vertices/m-p/1014987#M35637</guid>
      <dc:creator>agund4</dc:creator>
      <dc:date>2015-10-12T14:06:54Z</dc:date>
    </item>
    <item>
      <title>To start off you need the</title>
      <link>https://community.intel.com/t5/Software-Archive/query-device-vertices/m-p/1014988#M35638</link>
      <description>&lt;P&gt;To start off you need the SenseManager:&lt;/P&gt;

&lt;PRE style="font-family: Consolas; color: black; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"&gt;pSenseManager&amp;nbsp;=&amp;nbsp;&lt;SPAN style="color:#2b91af;"&gt;PXCMSenseManager&lt;/SPAN&gt;.CreateInstance();
&lt;/PRE&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;Then the device instance:&lt;/SPAN&gt;&lt;/P&gt;

&lt;PRE style="font-family: Consolas; color: black; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"&gt;&lt;SPAN style="color:blue;"&gt;var&lt;/SPAN&gt;&amp;nbsp;device&amp;nbsp;=&amp;nbsp;pSenseManager.captureManager.QueryDevice();
&lt;/PRE&gt;

&lt;P&gt;Get the depth photo &amp;amp; data:&lt;/P&gt;

&lt;PRE style="font-family: Consolas; color: black; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"&gt;&lt;SPAN style="color:#2b91af;"&gt;PXCMCapture&lt;/SPAN&gt;.&lt;SPAN style="color:#2b91af;"&gt;Sample&lt;/SPAN&gt;&amp;nbsp;photo&amp;nbsp;=&amp;nbsp;pSenseManager.QuerySample();
&lt;SPAN style="font-size: 1em; line-height: 1.5; color: rgb(43, 145, 175);"&gt;PXCMImage&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt; depth&amp;nbsp;=&amp;nbsp;photo.depth;
&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5; color: rgb(43, 145, 175);"&gt;PXCMImage&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5; color: rgb(43, 145, 175);"&gt;ImageData&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&amp;nbsp;ddata;
&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;depth.AcquireAccess(&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5; color: rgb(43, 145, 175);"&gt;PXCMImage&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5; color: rgb(43, 145, 175);"&gt;Access&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;.ACCESS_READ,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5; color: blue;"&gt;out&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&amp;nbsp;ddata);&lt;/SPAN&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;Set up the projection:&lt;/SPAN&gt;&lt;/P&gt;

&lt;PRE style="font-family: Consolas; color: black; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"&gt;projection&amp;nbsp;=&amp;nbsp;device.CreateProjection();
&lt;/PRE&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;Then get the vertices:&lt;/SPAN&gt;&lt;/P&gt;

&lt;PRE style="font-family: Consolas; color: black; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"&gt;&lt;SPAN style="color:#2b91af;"&gt;PXCMPoint3DF32&lt;/SPAN&gt;[] &lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;vertices&amp;nbsp;=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5; color: blue;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5; color: rgb(43, 145, 175);"&gt;PXCMPoint3DF32&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;[depth.info.width&amp;nbsp;*&amp;nbsp;depth.info.height];
projection.QueryVertices(depth,&amp;nbsp;vertices);&lt;/SPAN&gt;
&lt;/PRE&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;Note, the projection and vertices take a fair amount of processing and memory so I'd advise against updating those every frame. Also make sure you Dispose and/or Release everything when you're done with it each frame or the memory will keep piling up!&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;Let me know if you need any more help!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Oct 2015 17:07:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/query-device-vertices/m-p/1014988#M35638</guid>
      <dc:creator>jb455</dc:creator>
      <dc:date>2015-10-12T17:07:40Z</dc:date>
    </item>
    <item>
      <title>Dear James..</title>
      <link>https://community.intel.com/t5/Software-Archive/query-device-vertices/m-p/1014989#M35639</link>
      <description>&lt;P&gt;Dear James..&lt;/P&gt;

&lt;P&gt;Greetings!!!&lt;/P&gt;

&lt;P&gt;Thank you it helped me..&lt;/P&gt;

&lt;P&gt;I was using FF Hands console in cpp.&lt;/P&gt;

&lt;P&gt;plz help me in decreasing the frame rate .&lt;/P&gt;

&lt;P&gt;Very new to cpp, real sense. Kindly please help me with exact location.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2015 11:06:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/query-device-vertices/m-p/1014989#M35639</guid>
      <dc:creator>agund4</dc:creator>
      <dc:date>2015-10-13T11:06:05Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Software-Archive/query-device-vertices/m-p/1014990#M35640</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;If you want to only do the calculations every few frames (is this what you meant?), you can do something like (again, C# as I don't know C++ but I'd imagine it'd be similar):&lt;/P&gt;

&lt;PRE style="font-family: Consolas; color: black; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;"&gt;&lt;SPAN style="color:blue;"&gt;int&lt;/SPAN&gt;&amp;nbsp;frameCount&amp;nbsp;=&amp;nbsp;-1 //before the loop starts (start at -1 so it does the calculations on the first frame)
&lt;/PRE&gt;

&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: 1em; line-height: 1.5; color: blue;"&gt;//inside the while loop which does the imaging stuff:&lt;BR /&gt;
	if&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 1em; line-height: 1.5;"&gt;((frameCount++)&amp;nbsp;%&amp;nbsp;10&amp;nbsp;==&amp;nbsp;0)&lt;/SPAN&gt;&lt;BR /&gt;
	&lt;SPAN style="color: black; font-family: Consolas; font-size: 1em; line-height: 1.5;"&gt;&amp;nbsp; [do stuff]&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;Where you replace 10 with however often you want to update everything (so if your camera stream is 30fps this'll go 3 times per second)&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;James&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Oct 2015 08:56:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/query-device-vertices/m-p/1014990#M35640</guid>
      <dc:creator>jb455</dc:creator>
      <dc:date>2015-10-15T08:56:18Z</dc:date>
    </item>
  </channel>
</rss>

