nibabel.eulerangles.euler2mat
nibabel.eulerangles.mat2euler
Enter search terms or a module, class or function name.
Return quaternion corresponding to these Euler angles
Uses the z, then y, then x convention above
z : scalar
Rotation angle in radians around z-axis (performed first)
y : scalar
Rotation angle in radians around y-axis
x : scalar
Rotation angle in radians around x-axis (performed last)
quat : array shape (4,)
Quaternion in w, x, y z (real, then vector) format
Notes
We can derive this formula in Sympy using: