mne_bids.update_anat_landmarks¶
- mne_bids.update_anat_landmarks(bids_path, landmarks, verbose=None)[source]¶
Update the anatomical landmark coordinates of an MRI scan.
This will change the
AnatomicalLandmarkCoordinatesentry in the respective JSON sidecar file, or create it if it doesn’t exist.- Parameters
- bids_path
BIDSPath Path of the MR image.
- landmarks
mne.channels.DigMontage An
mne.channels.DigMontageinstance with coordinates for the nasion and left and right pre-auricular points in MRI voxel coordinates.Note
mne_bids.get_anat_landmarks()provides a convenient and reliable way to generate the landmark coordinates in the required coordinate system.- 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.
- bids_path
Notes
New in version 0.8.