SlideShare a Scribd company logo
1 of 11
Download to read offline
Coregistration in mne-python
Subjects without 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 MNEPython; please report
unexpected behavior to the
mne-analysis mailing list
Overview
Select MRI

Scale the MRI
3D View

Set MRI
Fiducials

Find Head Shape
to MRI Coregistration

Select Raw File
Control the
3D View

Save the Result
Input Files
•

Specify the directory containing MRIsubjects (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.
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.
Coregistration
•

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

Head shape and MRI are
initially aligned at the nasion.

Adjust the nasion alignment to
properly align the forehead
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)
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
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
Saving
•

Finally hit the save button to save the
scaled MRI as well as the head-MRI
transformation in a *-trans.fif file

More Related Content

Similar to MNE-Pythyon Scale MRI

C MEMORY MODEL​.pptx
C MEMORY MODEL​.pptxC MEMORY MODEL​.pptx
C MEMORY MODEL​.pptxLECO9
 
advancedzplmacroprogramming_081820.pptx
advancedzplmacroprogramming_081820.pptxadvancedzplmacroprogramming_081820.pptx
advancedzplmacroprogramming_081820.pptxssuser6a1dbf
 
UNIT_5_Data Wrangling.pptx
UNIT_5_Data Wrangling.pptxUNIT_5_Data Wrangling.pptx
UNIT_5_Data Wrangling.pptxBhagyasriPatel2
 
SAP HANA Overview
SAP HANA OverviewSAP HANA Overview
SAP HANA OverviewAbel Johny
 
Getting Started with Calc Manager for HFM
Getting Started with Calc Manager for HFMGetting Started with Calc Manager for HFM
Getting Started with Calc Manager for HFMAlithya
 
Internet of Things, TYBSC IT, Semester 5, Unit IV
Internet of Things, TYBSC IT, Semester 5, Unit IVInternet of Things, TYBSC IT, Semester 5, Unit IV
Internet of Things, TYBSC IT, Semester 5, Unit IVArti Parab Academics
 
Low memory footprint programs-iSeries
Low memory footprint programs-iSeriesLow memory footprint programs-iSeries
Low memory footprint programs-iSeriesPrithiviraj Damodaran
 
Introduction to Memory Contexts
Introduction to Memory ContextsIntroduction to Memory Contexts
Introduction to Memory ContextsChris Travers
 
Workspace Authoring 101: Feature Caching
Workspace Authoring 101: Feature CachingWorkspace Authoring 101: Feature Caching
Workspace Authoring 101: Feature CachingSafe Software
 
2. Data Preprocessing.pdf
2. Data Preprocessing.pdf2. Data Preprocessing.pdf
2. Data Preprocessing.pdfJyoti Yadav
 
Operating Systems 1 (9/12) - Memory Management Concepts
Operating Systems 1 (9/12) - Memory Management ConceptsOperating Systems 1 (9/12) - Memory Management Concepts
Operating Systems 1 (9/12) - Memory Management ConceptsPeter Tröger
 
Scalable Automatic Machine Learning in H2O
 Scalable Automatic Machine Learning in H2O Scalable Automatic Machine Learning in H2O
Scalable Automatic Machine Learning in H2OSri Ambati
 
IT Revision.pptx
IT Revision.pptxIT Revision.pptx
IT Revision.pptxEzazkhan19
 
Approximation techniques used for general purpose algorithms
Approximation techniques used for general purpose algorithmsApproximation techniques used for general purpose algorithms
Approximation techniques used for general purpose algorithmsSabidur Rahman
 
Towards automating machine learning: benchmarking tools for hyperparameter tu...
Towards automating machine learning: benchmarking tools for hyperparameter tu...Towards automating machine learning: benchmarking tools for hyperparameter tu...
Towards automating machine learning: benchmarking tools for hyperparameter tu...PyData
 

Similar to MNE-Pythyon Scale MRI (20)

C MEMORY MODEL​.pptx
C MEMORY MODEL​.pptxC MEMORY MODEL​.pptx
C MEMORY MODEL​.pptx
 
advancedzplmacroprogramming_081820.pptx
advancedzplmacroprogramming_081820.pptxadvancedzplmacroprogramming_081820.pptx
advancedzplmacroprogramming_081820.pptx
 
Stack and heap
Stack and heapStack and heap
Stack and heap
 
UNIT_5_Data Wrangling.pptx
UNIT_5_Data Wrangling.pptxUNIT_5_Data Wrangling.pptx
UNIT_5_Data Wrangling.pptx
 
What classes of SMD components is this category used for?
What classes of SMD components is this category used for?What classes of SMD components is this category used for?
What classes of SMD components is this category used for?
 
SAP HANA Overview
SAP HANA OverviewSAP HANA Overview
SAP HANA Overview
 
Getting Started with Calc Manager for HFM
Getting Started with Calc Manager for HFMGetting Started with Calc Manager for HFM
Getting Started with Calc Manager for HFM
 
Internet of Things, TYBSC IT, Semester 5, Unit IV
Internet of Things, TYBSC IT, Semester 5, Unit IVInternet of Things, TYBSC IT, Semester 5, Unit IV
Internet of Things, TYBSC IT, Semester 5, Unit IV
 
Low memory footprint programs-iSeries
Low memory footprint programs-iSeriesLow memory footprint programs-iSeries
Low memory footprint programs-iSeries
 
Introduction to Memory Contexts
Introduction to Memory ContextsIntroduction to Memory Contexts
Introduction to Memory Contexts
 
Workspace Authoring 101: Feature Caching
Workspace Authoring 101: Feature CachingWorkspace Authoring 101: Feature Caching
Workspace Authoring 101: Feature Caching
 
Scalable Automatic Machine Learning with H2O” by Erin LeDell, Chief Machine L...
Scalable Automatic Machine Learning with H2O” by Erin LeDell, Chief Machine L...Scalable Automatic Machine Learning with H2O” by Erin LeDell, Chief Machine L...
Scalable Automatic Machine Learning with H2O” by Erin LeDell, Chief Machine L...
 
2. Data Preprocessing.pdf
2. Data Preprocessing.pdf2. Data Preprocessing.pdf
2. Data Preprocessing.pdf
 
Operating Systems 1 (9/12) - Memory Management Concepts
Operating Systems 1 (9/12) - Memory Management ConceptsOperating Systems 1 (9/12) - Memory Management Concepts
Operating Systems 1 (9/12) - Memory Management Concepts
 
random forest.pptx
random forest.pptxrandom forest.pptx
random forest.pptx
 
Scalable Automatic Machine Learning in H2O
 Scalable Automatic Machine Learning in H2O Scalable Automatic Machine Learning in H2O
Scalable Automatic Machine Learning in H2O
 
IT Revision.pptx
IT Revision.pptxIT Revision.pptx
IT Revision.pptx
 
Approximation techniques used for general purpose algorithms
Approximation techniques used for general purpose algorithmsApproximation techniques used for general purpose algorithms
Approximation techniques used for general purpose algorithms
 
Towards automating machine learning: benchmarking tools for hyperparameter tu...
Towards automating machine learning: benchmarking tools for hyperparameter tu...Towards automating machine learning: benchmarking tools for hyperparameter tu...
Towards automating machine learning: benchmarking tools for hyperparameter tu...
 
Raptor user manual3.0
Raptor user manual3.0Raptor user manual3.0
Raptor user manual3.0
 

Recently uploaded

DP & Nostradamus-Fatima-Bailey-Branham-Ford - Short vers
DP & Nostradamus-Fatima-Bailey-Branham-Ford - Short versDP & Nostradamus-Fatima-Bailey-Branham-Ford - Short vers
DP & Nostradamus-Fatima-Bailey-Branham-Ford - Short versBengt & Maarit de Paulis
 
DP & Jesus Marriage - 2 potential candidates
DP & Jesus Marriage - 2 potential candidatesDP & Jesus Marriage - 2 potential candidates
DP & Jesus Marriage - 2 potential candidatesBengt & Maarit de Paulis
 
All About Zakah for Muslim Americans - Dr. Main Alqudah [https://www.guidance...
All About Zakah for Muslim Americans - Dr. Main Alqudah [https://www.guidance...All About Zakah for Muslim Americans - Dr. Main Alqudah [https://www.guidance...
All About Zakah for Muslim Americans - Dr. Main Alqudah [https://www.guidance...iqra tube
 
SERPENT COIL: THE AWAKENING OF KUNDALINI
SERPENT COIL: THE AWAKENING OF KUNDALINISERPENT COIL: THE AWAKENING OF KUNDALINI
SERPENT COIL: THE AWAKENING OF KUNDALINISantanu Das
 
Deerfoot Church of Christ Bulletin 3 24 24
Deerfoot Church of Christ Bulletin 3 24 24Deerfoot Church of Christ Bulletin 3 24 24
Deerfoot Church of Christ Bulletin 3 24 24deerfootcoc
 
Free eBook ~Short Inspirational Stories - The Benefits.pdf
Free eBook ~Short Inspirational Stories - The Benefits.pdfFree eBook ~Short Inspirational Stories - The Benefits.pdf
Free eBook ~Short Inspirational Stories - The Benefits.pdfOH TEIK BIN
 
365 Days of Thanking God_ Cultivating a Heart of Thanksgiving Everyday (Revis...
365 Days of Thanking God_ Cultivating a Heart of Thanksgiving Everyday (Revis...365 Days of Thanking God_ Cultivating a Heart of Thanksgiving Everyday (Revis...
365 Days of Thanking God_ Cultivating a Heart of Thanksgiving Everyday (Revis...Eizijesu Obahaiye
 
The Mormon & Quaker Moons of Lancashire: Stories of Religious Conversion & Mi...
The Mormon & Quaker Moons of Lancashire: Stories of Religious Conversion & Mi...The Mormon & Quaker Moons of Lancashire: Stories of Religious Conversion & Mi...
The Mormon & Quaker Moons of Lancashire: Stories of Religious Conversion & Mi...Cometan
 
The_Chronological_Life_of_Christ_Part_93_Fear God
The_Chronological_Life_of_Christ_Part_93_Fear GodThe_Chronological_Life_of_Christ_Part_93_Fear God
The_Chronological_Life_of_Christ_Part_93_Fear GodNetwork Bible Fellowship
 
Islamic Finance 101 - Dr. Main Alqudah [https://www.guidancecollege.org/]
Islamic Finance 101 - Dr. Main Alqudah [https://www.guidancecollege.org/]Islamic Finance 101 - Dr. Main Alqudah [https://www.guidancecollege.org/]
Islamic Finance 101 - Dr. Main Alqudah [https://www.guidancecollege.org/]iqra tube
 
Old Age but fruitful and meaningful.pptx
Old Age but fruitful and meaningful.pptxOld Age but fruitful and meaningful.pptx
Old Age but fruitful and meaningful.pptxInnovator Marbun
 
Easter Apocalypse_Palm Sunday_Rev. 7.pptx
Easter Apocalypse_Palm Sunday_Rev. 7.pptxEaster Apocalypse_Palm Sunday_Rev. 7.pptx
Easter Apocalypse_Palm Sunday_Rev. 7.pptxStephen Palm
 

Recently uploaded (13)

DP & Nostradamus-Fatima-Bailey-Branham-Ford - Short vers
DP & Nostradamus-Fatima-Bailey-Branham-Ford - Short versDP & Nostradamus-Fatima-Bailey-Branham-Ford - Short vers
DP & Nostradamus-Fatima-Bailey-Branham-Ford - Short vers
 
DP & Jesus Marriage - 2 potential candidates
DP & Jesus Marriage - 2 potential candidatesDP & Jesus Marriage - 2 potential candidates
DP & Jesus Marriage - 2 potential candidates
 
All About Zakah for Muslim Americans - Dr. Main Alqudah [https://www.guidance...
All About Zakah for Muslim Americans - Dr. Main Alqudah [https://www.guidance...All About Zakah for Muslim Americans - Dr. Main Alqudah [https://www.guidance...
All About Zakah for Muslim Americans - Dr. Main Alqudah [https://www.guidance...
 
English - The 1st Book of Adam and Eve.pdf
English - The 1st Book of Adam and Eve.pdfEnglish - The 1st Book of Adam and Eve.pdf
English - The 1st Book of Adam and Eve.pdf
 
SERPENT COIL: THE AWAKENING OF KUNDALINI
SERPENT COIL: THE AWAKENING OF KUNDALINISERPENT COIL: THE AWAKENING OF KUNDALINI
SERPENT COIL: THE AWAKENING OF KUNDALINI
 
Deerfoot Church of Christ Bulletin 3 24 24
Deerfoot Church of Christ Bulletin 3 24 24Deerfoot Church of Christ Bulletin 3 24 24
Deerfoot Church of Christ Bulletin 3 24 24
 
Free eBook ~Short Inspirational Stories - The Benefits.pdf
Free eBook ~Short Inspirational Stories - The Benefits.pdfFree eBook ~Short Inspirational Stories - The Benefits.pdf
Free eBook ~Short Inspirational Stories - The Benefits.pdf
 
365 Days of Thanking God_ Cultivating a Heart of Thanksgiving Everyday (Revis...
365 Days of Thanking God_ Cultivating a Heart of Thanksgiving Everyday (Revis...365 Days of Thanking God_ Cultivating a Heart of Thanksgiving Everyday (Revis...
365 Days of Thanking God_ Cultivating a Heart of Thanksgiving Everyday (Revis...
 
The Mormon & Quaker Moons of Lancashire: Stories of Religious Conversion & Mi...
The Mormon & Quaker Moons of Lancashire: Stories of Religious Conversion & Mi...The Mormon & Quaker Moons of Lancashire: Stories of Religious Conversion & Mi...
The Mormon & Quaker Moons of Lancashire: Stories of Religious Conversion & Mi...
 
The_Chronological_Life_of_Christ_Part_93_Fear God
The_Chronological_Life_of_Christ_Part_93_Fear GodThe_Chronological_Life_of_Christ_Part_93_Fear God
The_Chronological_Life_of_Christ_Part_93_Fear God
 
Islamic Finance 101 - Dr. Main Alqudah [https://www.guidancecollege.org/]
Islamic Finance 101 - Dr. Main Alqudah [https://www.guidancecollege.org/]Islamic Finance 101 - Dr. Main Alqudah [https://www.guidancecollege.org/]
Islamic Finance 101 - Dr. Main Alqudah [https://www.guidancecollege.org/]
 
Old Age but fruitful and meaningful.pptx
Old Age but fruitful and meaningful.pptxOld Age but fruitful and meaningful.pptx
Old Age but fruitful and meaningful.pptx
 
Easter Apocalypse_Palm Sunday_Rev. 7.pptx
Easter Apocalypse_Palm Sunday_Rev. 7.pptxEaster Apocalypse_Palm Sunday_Rev. 7.pptx
Easter Apocalypse_Palm Sunday_Rev. 7.pptx
 

MNE-Pythyon Scale MRI

  • 2. 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 MNEPython; please report unexpected behavior to the mne-analysis mailing list
  • 3. Overview Select MRI Scale the MRI 3D View Set MRI Fiducials Find Head Shape to MRI Coregistration Select Raw File Control the 3D View Save the Result
  • 4. Input Files • Specify the directory containing MRIsubjects (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.
  • 5. 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.
  • 6. Coregistration • Use “Fit LPA/RPA” to find an initial approximate alignment
  • 7. Coregistration • Head shape and MRI are initially aligned at the nasion. Adjust the nasion alignment to properly align the forehead
  • 8. 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)
  • 9. 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
  • 10. 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
  • 11. Saving • Finally hit the save button to save the scaled MRI as well as the head-MRI transformation in a *-trans.fif file