mne_bids.convert_montage_to_mri#

mne_bids.convert_montage_to_mri(montage, subject, subjects_dir=None, verbose=None)[source]#

Convert a montage from scanner RAS (m) to surface RAS (m).

Parameters:
montagemne.channels.DigMontage

The montage in the “ras” coordinate frame. Note: modified in place.

subjectstr

The FreeSurfer subject name.

subjects_dirpath-like | None

The path to the directory containing the FreeSurfer subjects reconstructions. If None, defaults to the SUBJECTS_DIR environment variable.

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:
ras_mri_tmne.transforms.Transform

The transformation matrix from 'ras' (scanner RAS) to 'mri' (surface RAS).

Examples using mne_bids.convert_montage_to_mri#

08. Convert iEEG data to BIDS format

08. Convert iEEG data to BIDS format