I am unfortunately not well acquanted with euler angles. This might be a quite uninformed question.
So i get the euler rotations in ZXY order above. Translation i get from the 4x4 matrix.
For instance as above: i perform a model registration through ALPACA, it gives me a matrix. From this matrix i get the ZXY of euler angles. Now when i put these angles in the ZXY order into a new transformation (with the translational component of the 4x4 matrix) to see if i would again get the same allignment, this does not occur. I know this is a flaw in my understanding of Euler angles, however i cannot seem to find a answer to this.
Im very gratefull for the time you’ve taken to answer my questions.
Conversion from orientation matrix to Euler angles is not well defined (the same orientation may be represented with various combination of rotations). However, conversion from Euler angles to orientation matrix should always provide the same matrix as the one that the Euler angles are computed from.
You need to play a bit with the order of rotation axes, but the vtkTransform class can be used for both conversions. For example: