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:
- montage
mne.channels.DigMontage
The montage in the “ras” coordinate frame. Note: modified in place.
- subject
str
The FreeSurfer subject name.
- subjects_dirpath-like |
None
The path to the directory containing the FreeSurfer subjects reconstructions. If
None
, defaults to theSUBJECTS_DIR
environment variable.- verbose
bool
|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.
- montage
- Returns:
- ras_mri_t
mne.transforms.Transform
The transformation matrix from
'ras'
(scanner RAS
) to'mri'
(surface RAS
).
- ras_mri_t
Examples using mne_bids.convert_montage_to_mri
#
Convert iEEG data to BIDS format
Convert iEEG data to BIDS format