Is the rotation of the 3D Slicer's Transform module Euler or Quaternion?

Hello everybody.
I am in the process of matching using the 3D Slicer and the program I configured.
In my program, I use quaternion for rotation.
3D Slicer also converted to Euler angle to rotate as much as the corresponding value, but it was not matched.
When I looked at other issues on the Forum, I confirmed that 3D Slicer uses quaternions.

  1. Can I enter the values of LR = x, PA=y, and IS=z among quaternion variables (w,x,y,z) into Rotation?
  2. Where can I enter the value of quaternian variable w?

Thank you!

Transforms module only uses 4x4 homogeneous transformation matrix for linear transforms. You can convert between these representations easily, for example by using vtk.vtkMath.QuaternionToMatrix3x3() and vtk.vtkMath.Matrix3x3ToQuaternion() methods.

Rotation angles in the Transforms module GUI simply allow incremental rotation along LR, AP, IS axes. The values displayed next to the sliders only show angle of the last rotation, therefore the displayed values do not represent the total rotation. See some more explanation at the end of this section in Transforms module documentation.

1 Like