mne_bids.update_anat_landmarks

mne_bids.update_anat_landmarks(bids_path, landmarks)[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_pathmne_bids.BIDSPath

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.

Notes

New in version 0.8.

Examples using mne_bids.update_anat_landmarks