mne.transforms.rot_to_quat#
- mne.transforms.rot_to_quat(rot, *, tol=0.001)[source]#
Convert a set of rotations to quaternions.
- Parameters:
- rot
array, shape (…, 3, 3) The rotation matrices to convert.
- tol
float Tolerance for the determinant checking that the rotation matrices are valid. The default (1e-3) should be suitable for most cases.
- rot
- Returns:
- quat
array, shape (…, 3) The q1, q2, and q3 (x, y, z) parameters of the corresponding unit quaternions.
- quat
See also