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 AnatomicalLandmarkCoordinates entry in the respective JSON sidecar file, or create it if it doesn’t exist.

Parameters
bids_pathBIDSPath

Path of the MR image.

landmarksmne.channels.DigMontage

An mne.channels.DigMontage instance 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.

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.

Notes

New in version 0.8.