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
ofRaw
Data to compute head position. Can be a list containing multiple raw instances.
- pos
array
, shape (N, 10) |list
ofndarray
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 andmne.verbose()
for details. Should only be passed as a keyword argument.
- rawinstance of
- Returns:
- dev_head_tinstance of
Transform
New
dev_head_t
transformation using the averaged good head positions.
- dev_head_tinstance of
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