<?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: ask about the origin of pointcloud in Items with no label</title>
    <link>https://community.intel.com/t5/Items-with-no-label/ask-about-the-origin-of-pointcloud/m-p/589341#M11203</link>
    <description>&lt;P&gt;As the point cloud uses the depth and color frames to calculate the cloud, I would assume that it uses the camera's origin point.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data sheet document for the 400 Series cameras says "The left and right imagers capture the scene and sends imager data to the depth imaging processor, which calculates depth values for each pixel in the image by correlating points on the left image to the right image and via shift between a point on the Left image and the Right image."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The calibration guide for the 400 Series, meanwhile, validates this by saying: "Assume left camera is the reference camera and is located at world origin."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The baseline is the distance between the center of the left and right imagers, which is 50 mm on the D435.&lt;/P&gt;</description>
    <pubDate>Wed, 28 Mar 2018 06:28:59 GMT</pubDate>
    <dc:creator>MartyG</dc:creator>
    <dc:date>2018-03-28T06:28:59Z</dc:date>
    <item>
      <title>ask about the origin of pointcloud</title>
      <link>https://community.intel.com/t5/Items-with-no-label/ask-about-the-origin-of-pointcloud/m-p/589340#M11202</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I'm a new D435 user and I want to ask a about the coordinates of pointcloud. &lt;/P&gt;&lt;P&gt;What is the origin of the pointcloud returned by the "calculate" function?&lt;/P&gt;&lt;P&gt;Many thanks in advanced!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use this code for getting point cloud data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rs2::pointcloud pc;&lt;/P&gt;&lt;P&gt;rs2::points points;&lt;/P&gt;&lt;P&gt;rs2::pipeline pipe;&lt;/P&gt;&lt;P&gt;pipe.start();&lt;/P&gt;&lt;P&gt;auto frames = pipe.wait_for_frames();&lt;/P&gt;&lt;P&gt;auto depth = frames.get_depth_frame();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;points = pc.calculate(depth);&lt;/P&gt;</description>
      <pubDate>Wed, 28 Mar 2018 04:11:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/ask-about-the-origin-of-pointcloud/m-p/589340#M11202</guid>
      <dc:creator>NMan</dc:creator>
      <dc:date>2018-03-28T04:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: ask about the origin of pointcloud</title>
      <link>https://community.intel.com/t5/Items-with-no-label/ask-about-the-origin-of-pointcloud/m-p/589341#M11203</link>
      <description>&lt;P&gt;As the point cloud uses the depth and color frames to calculate the cloud, I would assume that it uses the camera's origin point.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data sheet document for the 400 Series cameras says "The left and right imagers capture the scene and sends imager data to the depth imaging processor, which calculates depth values for each pixel in the image by correlating points on the left image to the right image and via shift between a point on the Left image and the Right image."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The calibration guide for the 400 Series, meanwhile, validates this by saying: "Assume left camera is the reference camera and is located at world origin."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The baseline is the distance between the center of the left and right imagers, which is 50 mm on the D435.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Mar 2018 06:28:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/ask-about-the-origin-of-pointcloud/m-p/589341#M11203</guid>
      <dc:creator>MartyG</dc:creator>
      <dc:date>2018-03-28T06:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: ask about the origin of pointcloud</title>
      <link>https://community.intel.com/t5/Items-with-no-label/ask-about-the-origin-of-pointcloud/m-p/589342#M11204</link>
      <description>&lt;P&gt;You mean the origin of point cloud is located at the center of the left imager of the camera. &lt;/P&gt;&lt;P&gt;How many millimeters deep into the camera from the glass surface is the origin located?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Mar 2018 14:17:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/ask-about-the-origin-of-pointcloud/m-p/589342#M11204</guid>
      <dc:creator>NMan</dc:creator>
      <dc:date>2018-03-28T14:17:23Z</dc:date>
    </item>
    <item>
      <title>Re: ask about the origin of pointcloud</title>
      <link>https://community.intel.com/t5/Items-with-no-label/ask-about-the-origin-of-pointcloud/m-p/589343#M11205</link>
      <description>&lt;P&gt;The origin should be the baseline (the center between the imagers).  As far as I am aware, the mm distance that the sensor is behind the glass isn't a factor in determining the origin.  The camera probably takes account of that thickness and treats the outside of the glass as the '0' distance origin..&lt;/P&gt;</description>
      <pubDate>Wed, 28 Mar 2018 14:27:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/ask-about-the-origin-of-pointcloud/m-p/589343#M11205</guid>
      <dc:creator>MartyG</dc:creator>
      <dc:date>2018-03-28T14:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: ask about the origin of pointcloud</title>
      <link>https://community.intel.com/t5/Items-with-no-label/ask-about-the-origin-of-pointcloud/m-p/589344#M11206</link>
      <description>&lt;P&gt;Thanks for your answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The camera 3D coordinate system origin is located at the center between left imager and right imager&lt;/P&gt;&lt;P&gt;So how can I find (x=0,y=0,z=0) point in the camera? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry, my English is bad.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Mar 2018 14:58:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/ask-about-the-origin-of-pointcloud/m-p/589344#M11206</guid>
      <dc:creator>NMan</dc:creator>
      <dc:date>2018-03-28T14:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: ask about the origin of pointcloud</title>
      <link>https://community.intel.com/t5/Items-with-no-label/ask-about-the-origin-of-pointcloud/m-p/589345#M11207</link>
      <description>&lt;P&gt;Your English is fine.  )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The origin point between the imagers is 0, 0, 0.  The Projection guide that describes how the RealSense SDK 2.0 calculates coordinates says:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Within this space, the positive x-axis points to the right, the positive y-axis points down, and the positive z-axis points forward.  Coordinates within this space are referred to as "points", and are used to describe locations within 3D space that might be visible within a particular image."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/IntelRealSense/librealsense/wiki/Projection-in-RealSense-SDK-2.0"&gt;https://github.com/IntelRealSense/librealsense/wiki/Projection-in-RealSense-SDK-2.0&lt;/A&gt; Projection in RealSense SDK 2.0 · IntelRealSense/librealsense Wiki · GitHub &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that if you wanted to get the real world 3D coordinates of an image that the camera was seeing, you would use the instruction  &lt;B&gt;rs2_deproject_pixel_to_point&lt;/B&gt; (which is described in the page I linked to above).  I will ask our stream programming expert to be sure - is that correct, jb455   &lt;/P&gt;</description>
      <pubDate>Wed, 28 Mar 2018 15:25:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/ask-about-the-origin-of-pointcloud/m-p/589345#M11207</guid>
      <dc:creator>MartyG</dc:creator>
      <dc:date>2018-03-28T15:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: ask about the origin of pointcloud</title>
      <link>https://community.intel.com/t5/Items-with-no-label/ask-about-the-origin-of-pointcloud/m-p/589346#M11208</link>
      <description>&lt;P&gt;Hi Nosman,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you have multiple cameras in a system, each camera will have its own center origin. Since Left Imager, Right Image, and Color camera are on a straight line [which Marty referred as baseline], the camera centers for 3 cameras are located at same point in y &amp;amp; z axis. Only displacement is on x-axis.&lt;/P&gt;&lt;P&gt;Refer last section on following link for a detailed explanation.&lt;/P&gt;&lt;P&gt; &lt;A href="https://github.com/IntelRealSense/librealsense/wiki/Projection-in-RealSense-SDK-2.0"&gt;https://github.com/IntelRealSense/librealsense/wiki/Projection-in-RealSense-SDK-2.0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to understand the x-displacement between any two cameras [Left Infra, Right Infra &amp;amp; Color], you can refer to the extinisics of these cameras. Additionally the Depth Camera is assumed to be aligned to the Infra Imager close to RGB sensor. It is just a convention, as physically there is no separate depth camera, depth is only estimated based on Infra1 &amp;amp; Infra2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. on my D435, I get following extrinsics for translation [rotation is Identity Matrix],&lt;/P&gt;&lt;P&gt;1. depth_to_infra1:&lt;/P&gt;&lt;P&gt;[0.0, 0.0, 0.0]&lt;/P&gt;&lt;P&gt;2. depth_to_infra2:&lt;/P&gt;&lt;P&gt;[-0.0500330813229084, 0.0, 0.0]&lt;/P&gt;&lt;P&gt;3. depth_to_color:&lt;/P&gt;&lt;P&gt;[0.014696473255753517, -0.00015400485426653177, -0.0001506415574112907]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Above implies that &lt;/P&gt;&lt;P&gt;1. Depth camera center of origin is assumed to be aligned to Infra1 sensor [the Imager next to color camera]&lt;/P&gt;&lt;P&gt;2. Infra2 sensor is 5 cm left of Infra1&lt;/P&gt;&lt;P&gt;3. Color sensor is about 1.47 cm right of Infra 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope above adds some more clarity to what was already being discussed between you and Marty?&lt;/P&gt;</description>
      <pubDate>Sat, 31 Mar 2018 03:13:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/ask-about-the-origin-of-pointcloud/m-p/589346#M11208</guid>
      <dc:creator>PSnip</dc:creator>
      <dc:date>2018-03-31T03:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: ask about the origin of pointcloud</title>
      <link>https://community.intel.com/t5/Items-with-no-label/ask-about-the-origin-of-pointcloud/m-p/589347#M11209</link>
      <description>&lt;P&gt;Thank you so much for your answer!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to find the position of origin of real world 3D coordinates of point cloud data that calculated from depth data.&lt;/P&gt;&lt;P&gt;Like your D435, the origin is on the baseline and located at the center of left imager (next to RGB sensor), but how can I find how depth from the glass surface is the origin located?&lt;/P&gt;&lt;P&gt;And can you share me the code for get extrinsics (depth_to_infra1:, depth_to_color) ? I'm a new user of D435 so I don't farmiliar to API of this camera.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Apr 2018 16:43:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/ask-about-the-origin-of-pointcloud/m-p/589347#M11209</guid>
      <dc:creator>NMan</dc:creator>
      <dc:date>2018-04-03T16:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: ask about the origin of pointcloud</title>
      <link>https://community.intel.com/t5/Items-with-no-label/ask-about-the-origin-of-pointcloud/m-p/589348#M11210</link>
      <description>&lt;P&gt;Hi Nosman,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you fully read the wiki page which I shared earlier?&lt;/P&gt;&lt;P&gt; &lt;A href="https://github.com/IntelRealSense/librealsense/wiki/Projection-in-RealSense-SDK-2.0"&gt;https://github.com/IntelRealSense/librealsense/wiki/Projection-in-RealSense-SDK-2.0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suggest that you read the above along with realsense SDK API documentation. This will answer all your questions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To elaborate further, if you want to know the 3-D co-ordinates corresponding to a particular pixel in Depth Image, you could call the function rs2_deproject_pixel_to_point()&lt;/P&gt;&lt;P&gt; &lt;A href="https://github.com/IntelRealSense/librealsense/blob/5e73f7bb906a3cbec8ae43e888f182cc56c18692/include/librealsense2/rsutil.h#"&gt;https://github.com/IntelRealSense/librealsense/blob/5e73f7bb906a3cbec8ae43e888f182cc56c18692/include/librealsense2/rsutil.h#&lt;/A&gt; L46&lt;/P&gt;&lt;P&gt;[Above is from the wiki page shared earlier]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, to get extrinsics, you could use get_extrinsics() call, details here&lt;/P&gt;&lt;P&gt; &lt;A href="https://github.com/IntelRealSense/librealsense/blob/5e73f7bb906a3cbec8ae43e888f182cc56c18692/examples/sensor-control/api_how_to.h#"&gt;https://github.com/IntelRealSense/librealsense/blob/5e73f7bb906a3cbec8ae43e888f182cc56c18692/examples/sensor-control/api_how_to.h#&lt;/A&gt; L209&lt;/P&gt;&lt;P&gt;[Above information again based on the wiki page]&lt;/P&gt;</description>
      <pubDate>Wed, 04 Apr 2018 05:31:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/ask-about-the-origin-of-pointcloud/m-p/589348#M11210</guid>
      <dc:creator>PSnip</dc:creator>
      <dc:date>2018-04-04T05:31:50Z</dc:date>
    </item>
  </channel>
</rss>

