mne.channels.compute_native_head_t#

mne.channels.compute_native_head_t(montage, *, on_missing='warn', verbose=None)[source]#

Compute the native-to-head transformation for a montage.

This uses the fiducials in the native space to transform to compute the transform to the head coordinate frame.

Parameters:
montageinstance of DigMontage

The montage.

on_missing‘raise’ | ‘warn’ | ‘ignore’

Can be 'raise' (default) to raise an error, 'warn' to emit a warning, or 'ignore' to ignore when some necessary fiducial points are missing.

New in version 1.2.

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:
native_head_tinstance of Transform

A native-to-head transformation matrix.

Examples using mne.channels.compute_native_head_t#

EEG forward operator with a template MRI

EEG forward operator with a template MRI

EEG source localization given electrode locations on an MRI

EEG source localization given electrode locations on an MRI

Working with sEEG data

Working with sEEG data