mne.chpi.head_pos_to_trans_rot_t#

mne.chpi.head_pos_to_trans_rot_t(quats)[source]#

Convert Maxfilter-formatted head position quaternions.

Parameters:
quatsndarray, shape (n_pos, 10)

MaxFilter-formatted position and quaternion parameters. See mne.chpi.read_head_pos() for details on the columns.

Returns:
translationndarray, shape (n_pos, 3)

Translations at each time point.

rotationndarray, shape (n_pos, 3, 3)

Rotations at each time point.

tndarray, shape (n_pos,)

The time points.