<?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: Locate nearest object with R200 in Items with no label</title>
    <link>https://community.intel.com/t5/Items-with-no-label/Locate-nearest-object-with-R200/m-p/567300#M9779</link>
    <description>&lt;P&gt;Hi Thomas,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;I see, yes the SDK documentation won't be useful to you. I would encourage you to follow the documentation shared by MartyG. Also, if you are able to determine the nearest object in the camera frame, we would appreciate if you share your results, since they would be useful for other members of the community.&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;Have a great day!&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;Best Regards,&lt;P&gt;&amp;nbsp;&lt;/P&gt;-Jose P.</description>
    <pubDate>Fri, 02 Jun 2017 00:04:02 GMT</pubDate>
    <dc:creator>idata</dc:creator>
    <dc:date>2017-06-02T00:04:02Z</dc:date>
    <item>
      <title>Locate nearest object with R200</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Locate-nearest-object-with-R200/m-p/567296#M9775</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am hoping to use the R200 camera to determine the position of the nearest object in the camera frame. In theory this should be easy using the "points" data, and this is what I've tried;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;float dist,min_dist;&lt;/P&gt;&lt;P&gt;min_dist = 5;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;float px,py,pz;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;auto points = reinterpret_cast(dev.get_frame_data(rs::stream::points));&lt;/P&gt;&lt;P&gt;&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(points-&amp;gt;z) //if(uint16_t d = *depth++)&lt;/P&gt;&lt;P&gt;                {&lt;/P&gt;&lt;P&gt;                    dist = sqrt(points-&amp;gt;x*points-&amp;gt;x+points-&amp;gt;y*points-&amp;gt;y+points-&amp;gt;z*points-&amp;gt;z);&lt;/P&gt;&lt;P&gt;                    if (dist&lt;/P&gt;&lt;P&gt;                         min_dist = dist;&lt;/P&gt;&lt;P&gt;                         px = points-&amp;gt;x;&lt;/P&gt;&lt;P&gt;                         py = points-&amp;gt;y;&lt;/P&gt;&lt;P&gt;                         pz = points-&amp;gt;z;&lt;/P&gt;&lt;P&gt;                    }&lt;/P&gt;&lt;P&gt;                }&lt;/P&gt;&lt;P&gt;                ++points;&lt;/P&gt;&lt;P&gt;            }&lt;/P&gt;&lt;P&gt;        }&lt;/P&gt;&lt;P&gt;    }&lt;/P&gt;&lt;P&gt;printf("object position = %f, %f, %f \n",px,py,pz);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However plotting px vs time, py vs time, pz vs time shows very noisy results even when the camera FOV is empty except for a single visible objects at a fixed position.&lt;/P&gt;&lt;P&gt;For example if I put an object 1 meter in from of the camera .2 meters up and .2 meters to the left and left it stationary, I would expect the time vs px,py,pz graphs to reflect this clearly, but they do not. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there something obvious I am doing wrong or expecting the camera to do something it's not capable of?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2017 19:04:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Locate-nearest-object-with-R200/m-p/567296#M9775</guid>
      <dc:creator>TKirv1</dc:creator>
      <dc:date>2017-05-31T19:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: Locate nearest object with R200</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Locate-nearest-object-with-R200/m-p/567297#M9776</link>
      <description>&lt;P&gt;Hi Thomas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your interest in the Intel® Realsense™ Platform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Personally, I don't have too much experience in determining the nearest object in front of the camera. Nevertheless, I did some research and found the Blob Tracking algorithm &lt;A href="https://software.intel.com/sites/landingpage/realsense/camera-sdk/v1.1/documentation/html/index.html?doc_blob_blob_tracking.html"&gt;https://software.intel.com/sites/landingpage/realsense/camera-sdk/v1.1/documentation/html/index.html?doc_blob_blob_tracking.html&lt;/A&gt; Intel® RealSense™ SDK 2016 R2 Documentation  which allows you to detect objects in front of the camera, I would encourage to use the Sample BlobViewer as a reference in order to detect the nearest object in front of the camera.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way I found this thread   , where the user MartyG recommends the function SetDSMinMaxZ() in order to reduce the noise from the R200 data. Maybe it will be useful to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you find this information useful, have a nice day!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;-Jose P.</description>
      <pubDate>Wed, 31 May 2017 22:14:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Locate-nearest-object-with-R200/m-p/567297#M9776</guid>
      <dc:creator>idata</dc:creator>
      <dc:date>2017-05-31T22:14:21Z</dc:date>
    </item>
    <item>
      <title>Re: Locate nearest object with R200</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Locate-nearest-object-with-R200/m-p/567298#M9777</link>
      <description>&lt;P&gt;Thanks for the info Jose!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately I am using a linux machine so I can't use the Realsense SDK. I will see if there is something similar in the librealsense library.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2017 17:55:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Locate-nearest-object-with-R200/m-p/567298#M9777</guid>
      <dc:creator>TKirv1</dc:creator>
      <dc:date>2017-06-01T17:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: Locate nearest object with R200</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Locate-nearest-object-with-R200/m-p/567299#M9778</link>
      <description>&lt;P&gt;Here's a documentation page about depth in Librealsense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/IntelRealSense/librealsense/blob/master/doc/projection.md"&gt;https://github.com/IntelRealSense/librealsense/blob/master/doc/projection.md&lt;/A&gt; librealsense/&lt;A href="http://projection.md"&gt;projection.md&lt;/A&gt; at master · IntelRealSense/librealsense · GitHub &lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2017 22:13:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Locate-nearest-object-with-R200/m-p/567299#M9778</guid>
      <dc:creator>MartyG</dc:creator>
      <dc:date>2017-06-01T22:13:26Z</dc:date>
    </item>
    <item>
      <title>Re: Locate nearest object with R200</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Locate-nearest-object-with-R200/m-p/567300#M9779</link>
      <description>&lt;P&gt;Hi Thomas,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;I see, yes the SDK documentation won't be useful to you. I would encourage you to follow the documentation shared by MartyG. Also, if you are able to determine the nearest object in the camera frame, we would appreciate if you share your results, since they would be useful for other members of the community.&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;Have a great day!&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;Best Regards,&lt;P&gt;&amp;nbsp;&lt;/P&gt;-Jose P.</description>
      <pubDate>Fri, 02 Jun 2017 00:04:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Locate-nearest-object-with-R200/m-p/567300#M9779</guid>
      <dc:creator>idata</dc:creator>
      <dc:date>2017-06-02T00:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: Locate nearest object with R200</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Locate-nearest-object-with-R200/m-p/567301#M9780</link>
      <description>&lt;P&gt;I'll be sure to do that! I have found that the applying the depth preset&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;apply_depth_control_preset(&amp;amp;dev,5);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reduces much of the noise in the depth map, which makes the simple algorithm I posted work a little better.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Thomas&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2017 03:16:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Locate-nearest-object-with-R200/m-p/567301#M9780</guid>
      <dc:creator>TKirv1</dc:creator>
      <dc:date>2017-06-02T03:16:35Z</dc:date>
    </item>
  </channel>
</rss>

