mne.head_to_mri¶
-
mne.
head_to_mri
(pos, subject, mri_head_t, subjects_dir=None, verbose=None)[source]¶ Convert pos from head coordinate system to MRI ones.
This function converts to MRI RAS coordinates and not to surface RAS.
- Parameters
- pos
array
, shape (n_pos, 3) The coordinates (in m) in head coordinate system.
- subject
str
Name of the subject.
- mri_head_tinstance of
Transform
MRI<->Head coordinate transformation.
- subjects_dir
str
|None
The path to the freesurfer subjects reconstructions. It corresponds to Freesurfer environment variable SUBJECTS_DIR.
- verbosebool,
str
,int
, orNone
If not None, override default verbose level (see
mne.verbose()
and Logging documentation for more). If used, it should be passed as a keyword-argument only.
- pos
- Returns
- coordinates
array
, shape (n_pos, 3) The MRI RAS coordinates (in mm) of pos.
- coordinates
Notes
This function requires nibabel.