<?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 I've been trying the same. in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Depth-Values-with-Processing/m-p/1054724#M51352</link>
    <description>&lt;P&gt;I've been trying the same.&lt;/P&gt;

&lt;P&gt;This is what I've got so far, but I'm missing how to interpret depth values. I was expecting millimeters, but it does not look like.&lt;/P&gt;

&lt;PRE class="brush:java;"&gt;sts = senseMgr.AcquireFrame(true);
		if (sts.compareTo(pxcmStatus.PXCM_STATUS_NO_ERROR)&amp;lt;0) return;

		PXCMCapture.Sample sample = senseMgr.QueryHandSample();

		if (sample.depth != null) {
			PXCMImage.ImageData dData = new PXCMImage.ImageData();
			sample.depth.AcquireAccess(PXCMImage.Access.ACCESS_READ,PXCMImage.PixelFormat.PIXEL_FORMAT_DEPTH, dData);
dData.ToIntArray(0, intDepth);
			sample.depth.ReleaseAccess(dData);
			for (int i = 0; i&amp;lt;floatDepth.length;i++){
				if(i%100==0)
					println((intDepth&lt;I&gt;))
				
			}
		}
&lt;/I&gt;&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 01 Apr 2015 14:27:42 GMT</pubDate>
    <dc:creator>Nacho_C_</dc:creator>
    <dc:date>2015-04-01T14:27:42Z</dc:date>
    <item>
      <title>Depth Values with Processing</title>
      <link>https://community.intel.com/t5/Software-Archive/Depth-Values-with-Processing/m-p/1054719#M51347</link>
      <description>&lt;P&gt;I have been trying to look at the samples and documentation, but there is very little information on Processing/Java compared to C++. &amp;nbsp;I'm trying to get an array of depth values using Processing, but so far I have not had any luck.&amp;nbsp; I want to be able to compare the depth values in each frame.&amp;nbsp; If anyone could provide an example, or advice it would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Sun, 18 Jan 2015 17:29:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Depth-Values-with-Processing/m-p/1054719#M51347</guid>
      <dc:creator>JD_K_</dc:creator>
      <dc:date>2015-01-18T17:29:34Z</dc:date>
    </item>
    <item>
      <title>There are some java samples</title>
      <link>https://community.intel.com/t5/Software-Archive/Depth-Values-with-Processing/m-p/1054720#M51348</link>
      <description>&lt;P&gt;There are some java samples under&amp;nbsp;C:\Program Files (x86)\Intel\RSSDK\framework\Java, please let me know if you still need help. Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jan 2015 04:02:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Depth-Values-with-Processing/m-p/1054720#M51348</guid>
      <dc:creator>Xusheng_L_Intel</dc:creator>
      <dc:date>2015-01-30T04:02:13Z</dc:date>
    </item>
    <item>
      <title>Thank you so much for the</title>
      <link>https://community.intel.com/t5/Software-Archive/Depth-Values-with-Processing/m-p/1054721#M51349</link>
      <description>&lt;P&gt;Thank you so much for the reply.&amp;nbsp; I'm trying to get an array of depth values similar to what you can do with the Kinect.&amp;nbsp; I was not able to find that in the examples.&amp;nbsp; If it's possible to provide an example of doing this in Processing it would be really appreciated.&amp;nbsp; If it was there and I overlooked it, please let me know.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jan 2015 21:45:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Depth-Values-with-Processing/m-p/1054721#M51349</guid>
      <dc:creator>JD_K_</dc:creator>
      <dc:date>2015-01-30T21:45:20Z</dc:date>
    </item>
    <item>
      <title>Looking for this information</title>
      <link>https://community.intel.com/t5/Software-Archive/Depth-Values-with-Processing/m-p/1054722#M51350</link>
      <description>&lt;P&gt;Looking for this information as well please.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Feb 2015 15:56:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Depth-Values-with-Processing/m-p/1054722#M51350</guid>
      <dc:creator>Vlad_C_</dc:creator>
      <dc:date>2015-02-19T15:56:52Z</dc:date>
    </item>
    <item>
      <title>I have the same problem.</title>
      <link>https://community.intel.com/t5/Software-Archive/Depth-Values-with-Processing/m-p/1054723#M51351</link>
      <description>&lt;P&gt;I have the same problem.&lt;/P&gt;

&lt;P&gt;here is the piece of code after I initialize the pipeline and create a foor loop for the first 300 frames. The documentation code sample is not initialized and the code doesn't compile unless it is initialized. Is there another way to do read the image buffer and have the stream be saved as a file?&lt;/P&gt;

&lt;PRE class="brush:java;"&gt;            if (sM.AcquireFrame(true) == pxcmStatus.PXCM_STATUS_NO_ERROR) break; // PXCM Status no error means there is some data available and I/O device is connected

            // retrieve the samples
            PXCMCapture.Sample sample=sM.QuerySample();

            // work on the samples: sample.color &amp;amp; sample.depth
            System.out.println("Working on frame"+i);
                       
            PXCMImage.ImageInfo iinfo=new PXCMImage.ImageInfo();
            PXCMImage image=session.CreateImage(iinfo);
            
            PXCMImage.ImageData data; // how to initialize this??????
            image.AcquireAccess(PXCMImage.Access.ACCESS_READ,data);
            
            // go fetch the next samples

            sM.ReleaseFrame(); 
            System.out.println("Done with frame"+i);&lt;/PRE&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;ignacio&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2015 00:29:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Depth-Values-with-Processing/m-p/1054723#M51351</guid>
      <dc:creator>Ignacio_A_Intel</dc:creator>
      <dc:date>2015-04-01T00:29:49Z</dc:date>
    </item>
    <item>
      <title>I've been trying the same.</title>
      <link>https://community.intel.com/t5/Software-Archive/Depth-Values-with-Processing/m-p/1054724#M51352</link>
      <description>&lt;P&gt;I've been trying the same.&lt;/P&gt;

&lt;P&gt;This is what I've got so far, but I'm missing how to interpret depth values. I was expecting millimeters, but it does not look like.&lt;/P&gt;

&lt;PRE class="brush:java;"&gt;sts = senseMgr.AcquireFrame(true);
		if (sts.compareTo(pxcmStatus.PXCM_STATUS_NO_ERROR)&amp;lt;0) return;

		PXCMCapture.Sample sample = senseMgr.QueryHandSample();

		if (sample.depth != null) {
			PXCMImage.ImageData dData = new PXCMImage.ImageData();
			sample.depth.AcquireAccess(PXCMImage.Access.ACCESS_READ,PXCMImage.PixelFormat.PIXEL_FORMAT_DEPTH, dData);
dData.ToIntArray(0, intDepth);
			sample.depth.ReleaseAccess(dData);
			for (int i = 0; i&amp;lt;floatDepth.length;i++){
				if(i%100==0)
					println((intDepth&lt;I&gt;))
				
			}
		}
&lt;/I&gt;&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2015 14:27:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Depth-Values-with-Processing/m-p/1054724#M51352</guid>
      <dc:creator>Nacho_C_</dc:creator>
      <dc:date>2015-04-01T14:27:42Z</dc:date>
    </item>
  </channel>
</rss>

