ICP rotation matrix - order of rotations

Any question about the main GUI application (frontend)
Post Reply
DanceEng
Posts: 4
Joined: Tue Jan 23, 2024 7:13 pm

ICP rotation matrix - order of rotations

Post by DanceEng »

Hi all,

I want to use Euler angle formulas to get the yaw, pitch, and roll from the transformation matrix following ICP registration.
Can someone confirm if CloudCompare derives the transform in the order of X,Y, and Z? Would also love a link to that documentation.

I assume once I confirm that the transform is calculated in that order, that I can use the formulas in the below and attached photo (from https://en.wikipedia.org/wiki/Euler_angles) to calculate yaw, pitch, and roll from the registration transformation matrix.

Image
rotation-matrix-equations.png
rotation-matrix-equations.png (210.03 KiB) Viewed 9698 times
DanceEng
Posts: 4
Joined: Tue Jan 23, 2024 7:13 pm

Re: ICP rotation matrix - order of rotations

Post by DanceEng »

Urgently need help with this :(
DanceEng
Posts: 4
Joined: Tue Jan 23, 2024 7:13 pm

Re: ICP rotation matrix - order of rotations

Post by DanceEng »

Looks like the apply transform modal has an option to display euler angles for whatever transform is entered. I trust they are correct
daniel
Site Admin
Posts: 7711
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: ICP rotation matrix - order of rotations

Post by daniel »

Mind that any rotation matrix can be converted to Euler angles. Then you just have to chose a convention that suits your needs.

And with this in mind, mind that the ICP algorithm doesn't use explicit Euler angles. It just finds a transformation that brings the 2 clouds as close as possible (depending on the parameters you've set). The 'Apply Transformation' displays the Euler angles according to the Tait-Bryan Z1Y2X3 convention.
Daniel, CloudCompare admin
Post Reply