mne.preprocessing.compute_average_dev_head_t#

mne.preprocessing.compute_average_dev_head_t(raw, pos)[source]#

Get new device to head transform based on good segments.

Segments starting with “BAD” annotations are not included for calculating the mean head position.

Parameters:
rawinstance of Raw

Data to compute head position.

posarray, shape (N, 10)

The position and quaternion parameters from cHPI fitting.

Returns:
dev_head_tarray of shape (4, 4)

New trans matrix using the averaged good head positions.

Examples using mne.preprocessing.compute_average_dev_head_t#

Annotate movement artifacts and reestimate dev_head_t

Annotate movement artifacts and reestimate dev_head_t

Annotate movement artifacts and reestimate dev_head_t