<?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: Getting float depth data in Items with no label</title>
    <link>https://community.intel.com/t5/Items-with-no-label/Getting-float-depth-data/m-p/367211#M1479</link>
    <description>&lt;P&gt;Grr, just tried this with the R200 (above was all testing with an SR300) and I'm getting ints again! @intel: is it possible to get float depth data from an R200 or is that int only?&lt;/P&gt;</description>
    <pubDate>Tue, 07 Feb 2017 16:59:47 GMT</pubDate>
    <dc:creator>jb455</dc:creator>
    <dc:date>2017-02-07T16:59:47Z</dc:date>
    <item>
      <title>Getting float depth data</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Getting-float-depth-data/m-p/367199#M1467</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to obtain float depth data, as the rounded/truncated integer depth data I'm currently getting is causing issues due to the 'stepping' (discontinuity when it goes from one millimetre to the next).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I remember a while ago there was an issue with the then-current SDK that QueryVertices was returning rounded/truncated integers rather than floats for depth - that is no longer the case with the 2016R2 SDK; thanks for fixing that, but:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm currently using the folowing code to get depth data:&lt;/P&gt;&lt;P&gt;var mappedImage = projection.CreateDepthImageMappedToColor(depth, , image);&lt;/P&gt;&lt;P&gt;mappedImage.AcquireAccess(PXCMImage.Access.ACCESS_READ, PXCMImage.PixelFormat.PIXEL_FORMAT_DEPTH_F32, out mdata);&lt;/P&gt;&lt;P&gt;var mwidth = mappedImage.info.width;&lt;/P&gt;&lt;P&gt;var mheight = mappedImage.info.height;&lt;/P&gt;&lt;P&gt;var mappedPixels = mdata.ToFloatArray(0, mwidth * mheight);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then feeding those pixels to ProjectColorToCamera() to obtain the world coordinates.&lt;/P&gt;&lt;P&gt;The problem is that, even though I'm using the float depth format and sending it to a float array, I'm only getting integer depth values back (the values in mappedPixels are always ".0").&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So: is there a bug with CreateDepthImageMappedToColor which means it only ever does integer depth, or is there something else I should be doing to get the full depth data?&lt;/P&gt;&lt;P&gt;I should note that I need this to be compatible with all cameras, so using the most recent SDK is not an option, nor is a fix (if this is a bug) going into a future SDK which doesn't support the R200.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2017 12:47:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Getting-float-depth-data/m-p/367199#M1467</guid>
      <dc:creator>jb455</dc:creator>
      <dc:date>2017-02-02T12:47:11Z</dc:date>
    </item>
    <item>
      <title>Re: Getting float depth data</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Getting-float-depth-data/m-p/367200#M1468</link>
      <description>&lt;P&gt;Getting floats instead of integers in a depth script is something that people have had trouble with in the past.  A developer called x.c posted a script a about 18 months ago that they said could get float data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Mat depthimage8;   &lt;/P&gt;&lt;P&gt;    depthimage8.create(480,640,CV_8UC1); &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    PXCImage::ImageData data_depth;  unsigned short *depth_data;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;              sample-&amp;gt;depth-&amp;gt;AcquireAccess(PXCImage::ACCESS_READ,PXCImage::PIXEL_FORMAT_DEPTH, &amp;amp;data_depth);   &lt;/P&gt;&lt;P&gt;                    depth_data = (unsigned short*)data_depth.planes[0];   &lt;/P&gt;&lt;P&gt;                    unsigned char cVal;&lt;/P&gt;&lt;P&gt;                    for(int y=0; y&lt;/P&gt;&lt;P&gt;                    {&lt;/P&gt;&lt;P&gt;                        for(int x=0; x&lt;/P&gt;&lt;P&gt;                        {&lt;/P&gt;&lt;P&gt;                            if(depth_data[y*W+x] &amp;gt;  fMaxValue)    //fMaxValue = 1000&lt;/P&gt;&lt;P&gt;                                depth_data[y*W+x] =  fMaxValue; &lt;/P&gt;&lt;P&gt;                            cVal = (unsigned char)((1.0*depth_data[y*W+x])/fMaxValue*255); &lt;/P&gt;&lt;P&gt;                            if(cVal!=0)&lt;/P&gt;&lt;P&gt;                                cVal = 255 - cVal;   &lt;/P&gt;&lt;P&gt;                            &lt;A href="http://depthimage8.at"&gt;depthimage8.at&lt;/A&gt;(y,x) = cVal;&lt;/P&gt;&lt;P&gt;                        }&lt;/P&gt;&lt;P&gt;                    }&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2017 13:03:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Getting-float-depth-data/m-p/367200#M1468</guid>
      <dc:creator>MartyG</dc:creator>
      <dc:date>2017-02-02T13:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: Getting float depth data</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Getting-float-depth-data/m-p/367201#M1469</link>
      <description>&lt;P&gt;Thanks for the reply Marty!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My attempt to translate that to C#  has resulted in this:&lt;/P&gt;&lt;P&gt;var depth_data = new short[mappedPixels.Length];&lt;/P&gt;&lt;P&gt;var ptr = mdata2.planes[0];&lt;/P&gt;&lt;P&gt;var psize = Marshal.SizeOf(typeof(short));&lt;/P&gt;&lt;P&gt;for(int i = 0; i &amp;lt; mappedPixels.Length; i++)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;     depth_data[i] = (short)Marshal.PtrToStructure(ptr, typeof(short));&lt;/P&gt;&lt;P&gt;     ptr = new IntPtr(ptr.ToInt64() + psize);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var dep = depth_data.Where(x =&amp;gt; x &amp;gt; 0);&lt;/P&gt;&lt;P&gt;for (int k = 0; k &amp;lt; mappedPixels.Length; k++)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;     if (depth_data[k] &amp;gt; 1000)&lt;/P&gt;&lt;P&gt;          depth_data[k] = 1000;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     byte cval = (byte)(1.0 * depth_data[k] / (1000 * 255));&lt;/P&gt;&lt;P&gt;     if (cval != 0)&lt;/P&gt;&lt;P&gt;          cval = (byte)(255 - cval);&lt;/P&gt;&lt;P&gt;     dpixels[k] = cval;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;(where mappedPixels is an array colour.length * colour.width big)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem is, line 18 is never hit, so everything in dpixels is 0. depth_data fills out nicely though; dep contains lots of nonzero elements which seem reasonable, so if anyone wants to get the data out of ImageData without using ToShortArray etc for some reason, lines 1-8 will do that for them.&lt;/P&gt;&lt;P&gt;I don't really understand what they're trying to do in the second half of the snippet which doesn't help! (&lt;A href="https://software.intel.com/en-us/forums/realsense/topic/557966"&gt;https://software.intel.com/en-us/forums/realsense/topic/557966&lt;/A&gt; here is the original thread for info)&lt;/P&gt;&lt;P&gt;Can anyone see where I'm going wrong, or suggest any other solutions?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2017 13:52:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Getting-float-depth-data/m-p/367201#M1469</guid>
      <dc:creator>jb455</dc:creator>
      <dc:date>2017-02-02T13:52:28Z</dc:date>
    </item>
    <item>
      <title>Re: Getting float depth data</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Getting-float-depth-data/m-p/367202#M1470</link>
      <description>&lt;P&gt;Yes I see, because cval = 0, it does not reach line 18 because it cannot satisfy the If statement's requirement that cval does not = 0.  'For' statements are my pet hate in programming!&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2017 14:03:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Getting-float-depth-data/m-p/367202#M1470</guid>
      <dc:creator>MartyG</dc:creator>
      <dc:date>2017-02-02T14:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: Getting float depth data</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Getting-float-depth-data/m-p/367203#M1471</link>
      <description>&lt;P&gt;So if I use PIXEL_FORMAT_DEPTH_RAW and convert each element in the array like so:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mappedImage.AcquireAccess(PXCMImage.Access.ACCESS_READ, PXCMImage.PixelFormat.PIXEL_FORMAT_DEPTH_RAW, out mdata);&lt;/P&gt;&lt;P&gt;var mwidth = mappedImage.info.width;&lt;/P&gt;&lt;P&gt;var mheight = mappedImage.info.height;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var mp = mdata.ToShortArray(0, mwidth * mheight);&lt;/P&gt;&lt;P&gt;var mappedPixels = new float[mp.Length];&lt;/P&gt;&lt;P&gt;var du = device.QueryDepthUnit();&lt;/P&gt;&lt;P&gt;for (int i = 0; i &amp;lt; mappedPixels.Length; i++)&lt;/P&gt;&lt;P&gt;     mappedPixels[i] = mp[i] * du / 1000;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...I still just get integers . And, actually, the values are way off too. Am I doing the conversion (line 9) right?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2017 15:26:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Getting-float-depth-data/m-p/367203#M1471</guid>
      <dc:creator>jb455</dc:creator>
      <dc:date>2017-02-02T15:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: Getting float depth data</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Getting-float-depth-data/m-p/367204#M1472</link>
      <description>&lt;P&gt;From what I can gather, you use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PXCImage::PIXEL_FORMAT_DEPTH_F32 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to get a float because that gets you a 32-bit float point (hence F32).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Intel staffer David Lu recommended to someone else with floating point troubles to look at the C#  source code of the RealSense SDK sample script 'Rawstreams' at &lt;/P&gt;&lt;P&gt;&lt;A&gt;C:\Program&lt;/A&gt; Files (x86)\Intel\RSSDK\framework\CSharp\DF_RawStreams.cs&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2017 15:46:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Getting-float-depth-data/m-p/367204#M1472</guid>
      <dc:creator>MartyG</dc:creator>
      <dc:date>2017-02-02T15:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: Getting float depth data</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Getting-float-depth-data/m-p/367205#M1473</link>
      <description>&lt;P&gt;You'd think, but as noted in my original post, that just returns integers.&lt;/P&gt;&lt;P&gt;I can't find anything to do with depth data in Raw Streams...&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2017 15:57:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Getting-float-depth-data/m-p/367205#M1473</guid>
      <dc:creator>jb455</dc:creator>
      <dc:date>2017-02-02T15:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: Getting float depth data</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Getting-float-depth-data/m-p/367206#M1474</link>
      <description>&lt;P&gt;Another source reckoned that "If a device fails to determine the depth of a given image pixel, a value of zero will be stored in the depth image.  This is a reasonable sentinel for 'no depth' because all pixels with a depth of zero would correspond to the same physical location, the location of the imager itself."  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"The default scale of an R200 device is one millimeter, allowing for a maximum expressive range of ~65 meters.  The depth scale can be modified by calling rs_set_device_option(...) with RS_OPTION_R200_DEPTH_UNITS, which specifies the number of micrometers per one increment of depth.  1000 would indicate millimeter scale, 10000 would indicate centimeter scale, while 31 would roughly approximate the F200's 1/32th of a millimeter scale."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry if I'm not being very helpful on this case!  &lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2017 16:07:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Getting-float-depth-data/m-p/367206#M1474</guid>
      <dc:creator>MartyG</dc:creator>
      <dc:date>2017-02-02T16:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: Getting float depth data</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Getting-float-depth-data/m-p/367207#M1475</link>
      <description>&lt;P&gt;Thanks for looking Marty, I appreciate your effort!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I do as in post # 4 but with the standard depth image instead of the result of CreateDepthImageMappedToColor then I do get float depth values (in multiples of 1/8 of a millimetre), my problem is that it seems CreateDepthImageMappedToColor clips the data down to integers, losing the extra precision with no way to get it back.&lt;/P&gt;&lt;P&gt;I guess if it is bugged I'll have to use another method of mapping between the colour and depth images to get the camera coordinates. I have tried a few different methods in the past, but none of them worked as well as my current way of doing it.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2017 16:34:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Getting-float-depth-data/m-p/367207#M1475</guid>
      <dc:creator>jb455</dc:creator>
      <dc:date>2017-02-02T16:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: Getting float depth data</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Getting-float-depth-data/m-p/367208#M1476</link>
      <description>&lt;P&gt;Any comments from Intel? How did the devs intend for us to get camera coordinates with float depths, aligned to the colour camera?&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2017 15:56:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Getting-float-depth-data/m-p/367208#M1476</guid>
      <dc:creator>jb455</dc:creator>
      <dc:date>2017-02-03T15:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: Getting float depth data</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Getting-float-depth-data/m-p/367209#M1477</link>
      <description>&lt;P&gt;Ok, managed to get this working using the &lt;A href="https://software.intel.com/sites/landingpage/realsense/camera-sdk/v1.1/documentation/html/index.html?queryinvuvmap_pxcprojection.html"&gt;https://software.intel.com/sites/landingpage/realsense/camera-sdk/v1.1/documentation/html/index.html?queryinvuvmap_pxcprojection.html&lt;/A&gt; Inverse UV Map:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;PXCMImage.ImageData ddata; &lt;P&gt;&amp;nbsp;&lt;/P&gt;depth.AcquireAccess(PXCMImage.Access.ACCESS_READ, PXCMImage.PixelFormat.PIXEL_FORMAT_DEPTH_F32, out ddata);&lt;P&gt;&amp;nbsp;&lt;/P&gt;var dwidth = depth.info.width;&lt;P&gt;&amp;nbsp;&lt;/P&gt;var dheight = depth.info.height; &lt;P&gt;&amp;nbsp;&lt;/P&gt;var dPixels = ddata.ToFloatArray(0, dwidth * dheight); &lt;P&gt;&amp;nbsp;&lt;/P&gt;depth.ReleaseAccess(ddata); &lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;var invuvmap = new PXCMPointF32[color.info.width * color.info.height];projection.QueryInvUVMap(depth, invuvmap);&lt;P&gt;&amp;nbsp;&lt;/P&gt;var mappedPixels = new float[cheight * cwidth];&lt;P&gt;&amp;nbsp;&lt;/P&gt;for (int i = 0; i &amp;lt; invuvmap.Length; i++) &lt;P&gt;&amp;nbsp;&lt;/P&gt;{     &lt;P&gt;&amp;nbsp;&lt;/P&gt;     int u = (int)(invuvmap[i].x * dwidth);&lt;P&gt;&amp;nbsp;&lt;/P&gt;     int v = (int)(invuvmap[i].y * dheight);&lt;P&gt;&amp;nbsp;&lt;/P&gt;     if (u &amp;gt;= 0 &amp;amp;&amp;amp; v &amp;gt;= 0 &amp;amp;&amp;amp; u + v * dwidth &amp;lt; dPixels.Length)&lt;P&gt;&amp;nbsp;&lt;/P&gt;     {&lt;P&gt;&amp;nbsp;&lt;/P&gt;           mappedPixels[i] = dPixels[u + v * dwidth];&lt;P&gt;&amp;nbsp;&lt;/P&gt;     } &lt;P&gt;&amp;nbsp;&lt;/P&gt;}&lt;P&gt;With this, I now have float depth data aligned to the colour image, which I use in &lt;A href="https://software.intel.com/sites/landingpage/realsense/camera-sdk/v1.1/documentation/html/index.html?projectcolortocamera_pxcprojection.html"&gt;https://software.intel.com/sites/landingpage/realsense/camera-sdk/v1.1/documentation/html/index.html?projectcolortocamera_pxcprojection.html&lt;/A&gt; ProjectColorToCamera to get the camera coordinates for each point in the colour image.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2017 17:18:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Getting-float-depth-data/m-p/367209#M1477</guid>
      <dc:creator>jb455</dc:creator>
      <dc:date>2017-02-03T17:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: Getting float depth data</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Getting-float-depth-data/m-p/367210#M1478</link>
      <description>&lt;P&gt;Thanks for sharing, JB!&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2017 17:26:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Getting-float-depth-data/m-p/367210#M1478</guid>
      <dc:creator>MartyG</dc:creator>
      <dc:date>2017-02-03T17:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: Getting float depth data</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Getting-float-depth-data/m-p/367211#M1479</link>
      <description>&lt;P&gt;Grr, just tried this with the R200 (above was all testing with an SR300) and I'm getting ints again! @intel: is it possible to get float depth data from an R200 or is that int only?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2017 16:59:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Getting-float-depth-data/m-p/367211#M1479</guid>
      <dc:creator>jb455</dc:creator>
      <dc:date>2017-02-07T16:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: Getting float depth data</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Getting-float-depth-data/m-p/367212#M1480</link>
      <description>&lt;P&gt;Hi James,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;Let us investigate if this is possible. We'll get back to you as soon as we have some updates on your case.&lt;P&gt;&amp;nbsp;&lt;/P&gt;Did you try using the exact same snippet you used for the SR300? We just want to make sure you didn't change anything in your code.&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;Regards,&lt;P&gt;&amp;nbsp;&lt;/P&gt;-Pablo</description>
      <pubDate>Wed, 08 Feb 2017 16:51:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Getting-float-depth-data/m-p/367212#M1480</guid>
      <dc:creator>idata</dc:creator>
      <dc:date>2017-02-08T16:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: Getting float depth data</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Getting-float-depth-data/m-p/367213#M1481</link>
      <description>&lt;P&gt;Yes, just plugged the R200 in using the same code. Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 16:59:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Getting-float-depth-data/m-p/367213#M1481</guid>
      <dc:creator>jb455</dc:creator>
      <dc:date>2017-02-08T16:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: Getting float depth data</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Getting-float-depth-data/m-p/367214#M1482</link>
      <description>&lt;P&gt;Hi James, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;I'm not sure if you've checked the RF_MeasurementSP.exe sample, it uses floats to measure objects using the R200 camera. You can check the source code in the following directory &lt;B&gt;&lt;A&gt;C:\Program&lt;/A&gt; Files (x86)\Intel\RSSDK\sample\RF_MeasurementSP\RF_MeasurementSP_vs2015.sln&lt;/B&gt;, hopefully you can implement a similar solution for your current project. &lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;Regards,&lt;P&gt;&amp;nbsp;&lt;/P&gt;-Pablo</description>
      <pubDate>Thu, 09 Feb 2017 19:32:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Getting-float-depth-data/m-p/367214#M1482</guid>
      <dc:creator>idata</dc:creator>
      <dc:date>2017-02-09T19:32:06Z</dc:date>
    </item>
    <item>
      <title>Re: Getting float depth data</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Getting-float-depth-data/m-p/367215#M1483</link>
      <description>&lt;P&gt;Hi Pablo, thanks for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hadn't seen that sample before. Looking through it now (and it's quite hard to tell what's going on as it has very few comments), it seems as though they get the z values from QueryVertices (or the ScenePerception equivalent). However, when I run QueryVertices on the R200 the returned z values are ints (the same with the SR300 gives float z values). So: is there something I'm missing in that sample? Could you give line numbers which do what I need please? Or is it just the case that ScenePerception does things differently to the normal camera streaming and can get higher precision?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2017 11:10:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Getting-float-depth-data/m-p/367215#M1483</guid>
      <dc:creator>jb455</dc:creator>
      <dc:date>2017-02-10T11:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: Getting float depth data</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Getting-float-depth-data/m-p/367216#M1484</link>
      <description>&lt;P&gt;Hi James,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;Let me take a closer look at the source code myself, just to see what's happening within it and provide a more accurate answer. Thank you for your patience.&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;Regards,&lt;P&gt;&amp;nbsp;&lt;/P&gt;-Pablo</description>
      <pubDate>Sat, 11 Feb 2017 00:26:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Getting-float-depth-data/m-p/367216#M1484</guid>
      <dc:creator>idata</dc:creator>
      <dc:date>2017-02-11T00:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: Getting float depth data</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Getting-float-depth-data/m-p/367217#M1485</link>
      <description>&lt;P&gt;Hi James,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;I believe this is what you're looking for: &lt;B&gt;Measurement.cpp (line 30) -&amp;gt; float Measurement::GetDistance(const unsigned int uiIndex1, const unsigned int uiIndex2) const&lt;/B&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;You can check references to this function to see how it is used.&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;Regards,&lt;P&gt;&amp;nbsp;&lt;/P&gt;-Pablo</description>
      <pubDate>Tue, 21 Feb 2017 00:49:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Getting-float-depth-data/m-p/367217#M1485</guid>
      <dc:creator>idata</dc:creator>
      <dc:date>2017-02-21T00:49:43Z</dc:date>
    </item>
    <item>
      <title>Re: Getting float depth data</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Getting-float-depth-data/m-p/367218#M1486</link>
      <description>&lt;P&gt;Hi jb455, could you please tell me how would this code be in c++, because i´m getting a lot of errors when i try to write this same code in c++.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!!&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2017 12:09:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Getting-float-depth-data/m-p/367218#M1486</guid>
      <dc:creator>idata</dc:creator>
      <dc:date>2017-05-02T12:09:24Z</dc:date>
    </item>
  </channel>
</rss>

