mne.preprocessing.compute_average_dev_head_t#

mne.preprocessing.compute_average_dev_head_t(raw, pos, *, verbose=None)[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 | list of Raw

Data to compute head position. Can be a list containing multiple raw instances.

posarray, shape (N, 10) | list of ndarray

The position and quaternion parameters from cHPI fitting. Can be a list containing multiple position arrays, one per raw instance passed.

verbosebool | str | int | None

Control verbosity of the logging output. If None, use the default verbosity level. See the logging documentation and mne.verbose() for details. Should only be passed as a keyword argument.

Returns:
dev_head_tinstance of Transform

New dev_head_t transformation using the averaged good head positions.

Notes

Changed in version 1.7: Support for multiple raw instances and position arrays was added.

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