<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://communities.bentley.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>[ccmasterkernel U20] Photogroup functions pixelToRay/point3dToPixel</title><link>https://communities.bentley.com/products/3d_imaging_and_point_cloud_software/f/contextcapture-descartes-pointools-forum/240839/ccmasterkernel-u20-photogroup-functions-pixeltoray-point3dtopixel</link><description>I read in CC SDK U20 that there are new transformation functions pixelToRay/point3dToPixel for Photogroup. For what purpose it is used? 
 I am looking for function to get photo corners projected on ground and transform from image pixel coordinates to</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: [ccmasterkernel U20] Photogroup functions pixelToRay/point3dToPixel</title><link>https://communities.bentley.com/thread/786853?ContentTypeID=1</link><pubDate>Wed, 25 Oct 2023 15:53:11 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:b3c62aee-46b2-41ac-9d2f-6d133bcbe08b</guid><dc:creator>Lin Qun</dc:creator><description>&lt;p&gt;Thank you so much for the&amp;nbsp;formula &amp;ldquo;&lt;span&gt;p3dcamera = rotation * (p3dworld &amp;ndash; center)&amp;rdquo;&lt;br /&gt;I haven&amp;#39;t found the definition of Photo.pose.rotation and&amp;nbsp;Photo.pose.center in sdk. I mistaken that as &amp;quot;p3dcamera = rotation * p3dworld + center&amp;quot; and always get the wrong projection. Your answer saved me a lot of trouble. Thank you so much!&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [ccmasterkernel U20] Photogroup functions pixelToRay/point3dToPixel</title><link>https://communities.bentley.com/thread/786601?ContentTypeID=1</link><pubDate>Tue, 24 Oct 2023 11:42:25 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:97bdc8ce-5808-47d5-8c3e-fb00b30e72a4</guid><dc:creator>Oto</dc:creator><description>&lt;p style="font-weight:400;"&gt;&lt;br /&gt;Description: Photogroup functions pixelToRay/point3dT&lt;br /&gt;Product: ContextCapture&lt;br /&gt;Product Area: Options&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style="font-weight:400;"&gt;These functions are needed to project a 3D point onto a photo and get its 2D pixel coordinates (useful for reprojection error computation, texturing or many other applications) and to do the opposite transformation, get a 3D ray from 2D pixel coordinates.&lt;/p&gt;
&lt;p style="font-weight:400;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="font-weight:400;"&gt;In practice to project a 3D point onto an image given its 3D position in the world reference system, the photo pose in the world and the photogroup properties some have to:&lt;/p&gt;
&lt;ul style="font-weight:400;"&gt;
&lt;li&gt;Transform the 3D point from world to camera reference system by applying the photo pose&lt;br /&gt;p3dcamera = rotation * (p3dworld &amp;ndash; center)&lt;/li&gt;
&lt;li&gt;Project this p3dcamera point to the image using the new SDK function &amp;ldquo;point3dToPixel&amp;rdquo;&lt;/li&gt;
&lt;/ul&gt;
&lt;p style="font-weight:400;"&gt;To get a 3D ray from a pixel point some have to:&lt;/p&gt;
&lt;ul style="font-weight:400;"&gt;
&lt;li&gt;Get a 3D ray in camera coordinate system using the new SDK function &amp;ldquo;pixelToRay&amp;rdquo;&lt;/li&gt;
&lt;li&gt;Transform the 3D ray from camera pose to world reference system&lt;br /&gt;ray3dworld = rotationTransposed * ray3dcamera + center&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>