MNE-Python Scale MRI

11
Coregistration in mne-python Subjects without MRI

description

Scaling a template MRI and coregistering it to a subject's head shape.

Transcript of MNE-Python Scale MRI

Page 1: MNE-Python Scale MRI

Coregistration in mne-pythonSubjects without MRI

Page 2: MNE-Python Scale MRI

General Notes• The GUI uses the traits library

which supports different backends but seems to work best with QT4 currently. To make QT4 the default: • In Canopy: change

Preferences/Python/PyLab backend

• In a terminal: $ export ETS_TOOLKIT=“qt4”

• The coregistration GUI is a recent addition to MNE-Python; please report unexpected behavior to the mne-analysis mailing list

Page 3: MNE-Python Scale MRI

Overview

Select Raw File

Set MRI Fiducials

Select MRI Scale the MRI

Save the Result

Find Head Shape to MRI Co- registration

Control the 3D View

3D View

Page 4: MNE-Python Scale MRI

Input Files• Specify the directory containing MRI-

subjects (subjects_dir)

• Select the Raw file for which to do the coregistration

• Select the template brain to use. The default template that comes with freesurfer and MNE is fsaverage. The fsaverage files can be copied into the subjects directory with the “Copy FsAverage to Subject Folder” button (the button does not work if a subject named “fsaverage” already exists).

• Fsaverage comes with fiducials which should be automatically loaded, in which case you can skip the next slide.

Page 5: MNE-Python Scale MRI

Fiducials• Select the fiducial you want to

modify, and then click on the head model to specify the position. Fiducials are displayed as small colored spheres.

• When all the fiducials are specified, save the positions so they can be loaded in the future.

• Lock the fiducials to proceed to the coregistration.

Page 6: MNE-Python Scale MRI

Coregistration• Use “Fit LPA/RPA” to find an

initial approximate alignment

Page 7: MNE-Python Scale MRI

Coregistration• Head shape and MRI are

initially aligned at the nasion. Adjust the nasion alignment to properly align the forehead

Page 8: MNE-Python Scale MRI

Coregistration• In case the head shape

contains outlier points, head shape points can be omitted based on their distance from

the MRI head surface (for the sample data, 10 mm is a good distance)

Page 9: MNE-Python Scale MRI

Scaling• Select the desired number of

scaling parameters (scaling with the same factor along all axes or scaling with a separate factor for the X, Y and Z axes)

• Use the automatic fitting functions as well as manual adjustment to find a proper MRI scaling factor

Page 10: MNE-Python Scale MRI

Coregistration• Once a proper scaling factor is found,

use the fitting function that don’t scale the MRI as well as manual adjustment to fine tune the coregistration

Page 11: MNE-Python Scale MRI

Saving• Finally hit the save button to save the

scaled MRI as well as the head-MRI transformation in a *-trans.fif file