<?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: Intrinsic camera parameters mismatch in Items with no label</title>
    <link>https://community.intel.com/t5/Items-with-no-label/Intrinsic-camera-parameters-mismatch/m-p/581876#M10837</link>
    <description>&lt;P&gt;Hello Wiredchop, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;Thanks for posting in the RealSense community. &lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;The SDK software reports the image coefficients which are 0, because the streams are rectified:  &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; d400-series.  The calibration sw shows the calibration coeffs for the unrectified images.&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;Regarding your question why focal length and principal points do not match:&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;The calibration software is reporting the intrinsics for the 1280 x 800 resolution for the Y16 (unrectified) format.  If you use the rs_sensor_control.exe example, you will see that you cannot retrieve the intrinsics for this resolution and format. The rs_sensor_control.exe example gives you intrinsics for rectified image, which will be slightly different.&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;You can use the utilities described in this webpage ( &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;) to do your projection and deprojection without having to use the unrectified parameters.&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;Juan N.</description>
    <pubDate>Wed, 25 Apr 2018 16:52:50 GMT</pubDate>
    <dc:creator>idata</dc:creator>
    <dc:date>2018-04-25T16:52:50Z</dc:date>
    <item>
      <title>Intrinsic camera parameters mismatch</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Intrinsic-camera-parameters-mismatch/m-p/581875#M10836</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm programming in C# , and capturing the depth, colour and pointcloud information from a realsense D435 camera. I'm projecting the depth data into 3D space using a standard function which requires the intrinsic camera parameters of the camera.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was getting the intrinsics of the depth camera and noticed that the distortion coefficients were zero (as others have mentioned). Given the wide angle of the camera I thought this was unlikely but perhaps the factory calibration didn't include distortion...&lt;/P&gt;&lt;P&gt;To improve this I went about looking at &lt;A href="https://www.intel.com/content/dam/support/us/en/documents/emerging-technologies/intel-realsense-technology/RealSense_D400%20_Custom_Calib_Paper.pdf"&gt;https://www.intel.com/content/dam/support/us/en/documents/emerging-technologies/intel-realsense-technology/RealSense_D400%20_Custom_Calib_Paper.pdf&lt;/A&gt; custom calibrations so I could get a better lens model. When I was working through the instructions I used the command line tool which can read and write the parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wrote the intrinsic parameters using the command:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Intel.Realsense.CustomRW.exe -r &amp;gt; params.txt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got the paramers:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was suprised to see that the left and right infrared cameras have distortion coefficients! It then occured to me that perhaps I should be using the intrinsice from the infrared stream rather than the depth stream. I did that and got:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is definitely the IR camera as there is no depth stream at full resolution (1280 x 800 matches the resolution given by the calibration software).&lt;/P&gt;&lt;P&gt;Thing to note:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Still no distortion coefficients!&lt;/LI&gt;&lt;LI&gt;focal length and principal points don't match!&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A few questions:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Is this a software bug?&lt;/LI&gt;&lt;LI&gt;Are the parameters different because the image has been manipulated in the hardware?&lt;/LI&gt;&lt;LI&gt;Given all this, what parameters should I use to project the point cloud?&lt;/LI&gt;&lt;LI&gt;Does a different implementation of the SDK return distortion coefficients?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anyone knows the answer to this, or has solved a similar problem I'd be really grateful. I'm not sure what to trust!&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2018 08:23:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Intrinsic-camera-parameters-mismatch/m-p/581875#M10836</guid>
      <dc:creator>SChop3</dc:creator>
      <dc:date>2018-04-24T08:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: Intrinsic camera parameters mismatch</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Intrinsic-camera-parameters-mismatch/m-p/581876#M10837</link>
      <description>&lt;P&gt;Hello Wiredchop, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;Thanks for posting in the RealSense community. &lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;The SDK software reports the image coefficients which are 0, because the streams are rectified:  &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; d400-series.  The calibration sw shows the calibration coeffs for the unrectified images.&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;Regarding your question why focal length and principal points do not match:&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;The calibration software is reporting the intrinsics for the 1280 x 800 resolution for the Y16 (unrectified) format.  If you use the rs_sensor_control.exe example, you will see that you cannot retrieve the intrinsics for this resolution and format. The rs_sensor_control.exe example gives you intrinsics for rectified image, which will be slightly different.&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;You can use the utilities described in this webpage ( &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;) to do your projection and deprojection without having to use the unrectified parameters.&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;Juan N.</description>
      <pubDate>Wed, 25 Apr 2018 16:52:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Intrinsic-camera-parameters-mismatch/m-p/581876#M10837</guid>
      <dc:creator>idata</dc:creator>
      <dc:date>2018-04-25T16:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: Intrinsic camera parameters mismatch</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Intrinsic-camera-parameters-mismatch/m-p/581877#M10838</link>
      <description>&lt;P&gt;Thanks very much, that puts my mind at rest!&lt;/P&gt;</description>
      <pubDate>Thu, 26 Apr 2018 09:40:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Intrinsic-camera-parameters-mismatch/m-p/581877#M10838</guid>
      <dc:creator>SChop3</dc:creator>
      <dc:date>2018-04-26T09:40:47Z</dc:date>
    </item>
  </channel>
</rss>

