Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
example:coregistration_quality_control [2016/11/09 12:04]
robert created example script for coregistration quality control
example:coregistration_quality_control [2017/08/17 11:21] (current)
Line 1: Line 1:
-{{tag>​example source mri}}+{{tag>​example source mri plot}}
  
 ====== Check the quality of the anatomical coregistration ====== ====== Check the quality of the anatomical coregistration ======
  
 The following code makes a number of figures that can be used as quality control for the  procedure to coregister the MRI with the MEG.  The following code makes a number of figures that can be used as quality control for the  procedure to coregister the MRI with the MEG. 
 +
 +<note warning>
 +Please note that this is an example where the coregistration was not completely correct. The head is tilted to the left.
 +</​note>​
  
 <​code>​ <​code>​
Line 22: Line 26:
 ft_plot_vol(headmodel_mri,​ '​unit',​ '​mm'​) ft_plot_vol(headmodel_mri,​ '​unit',​ '​mm'​)
 ft_plot_axes([],​ '​unit',​ '​mm'​);​ ft_plot_axes([],​ '​unit',​ '​mm'​);​
 +
 +</​code>​
 +
 +{{:​example:​coreg_qc_fig1.png?​400|}}
 +
 +<​code>​
  
 %% figure 2, MRI anatomy and brain segmentation %% figure 2, MRI anatomy and brain segmentation
Line 31: Line 41:
 ft_sourceplot(cfg,​ mri_segmented) ft_sourceplot(cfg,​ mri_segmented)
  
 +</​code>​
  
-%% figure 3, MRI anatomy and headmodel+{{:​example:​coreg_qc_fig2.png?​400|}} 
 + 
 +<​code>​ 
 + 
 +%% figure 3 and 4, MRI anatomy and headmodel
  
 location = [0 0 60]; location = [0 0 60];
Line 41: Line 56:
 ft_plot_montage(mri_resliced.anatomy,​ '​transform',​ mri_resliced.transform,​ '​intersectmesh',​ headmodel_mri.bnd) ft_plot_montage(mri_resliced.anatomy,​ '​transform',​ mri_resliced.transform,​ '​intersectmesh',​ headmodel_mri.bnd)
  
-%% figure ​4, MRI scalp surface and polhemus headshape+</​code>​ 
 + 
 +{{:​example:​coreg_qc_fig3.png?​400|}} 
 +{{:​example:​coreg_qc_fig4.png?​400|}} 
 + 
 +<​code>​ 
 + 
 +%% figure ​5, MRI scalp surface and polhemus headshape
  
 cfg = []; cfg = [];
Line 58: Line 80:
 ft_plot_headshape(headshapeMEG,​ '​vertexcolor',​ '​k'​);​ ft_plot_headshape(headshapeMEG,​ '​vertexcolor',​ '​k'​);​
  
-%% figure ​5, MRI and anatomical landmarks+</​code>​ 
 + 
 +{{:​example:​coreg_qc_fig5.png?​400|}} 
 + 
 +<​code>​ 
 + 
 +%% figure ​6, MRI and anatomical landmarks
  
 figure figure
Line 68: Line 96:
 end end
  
-%% figure ​6, MRI scalp surface and anatomical landmarks ​+</​code>​ 
 + 
 +{{:​example:​coreg_qc_fig6.png?​400|}} 
 + 
 +<​code>​ 
 + 
 +%% figure ​7, MRI scalp surface and anatomical landmarks ​
  
 figure figure
Line 80: Line 114:
  
 </​code>​ </​code>​
 +
 +{{:​example:​coreg_qc_fig7.png?​400|}}