= Warping default anatomy = The best results for source localization are obtained with an individual anatomy of each subject, that are processed to extract the cortex and the scalp surface. Unfortunately, scanning a subject in an MRI costs in time and money, and may not be available for the source analysis. In this case, it was already explained in the previous tutorials that you can use the default anatomy Colin27. But for subjects that have head shapes that are really different from Colin Holme's, the localization errors can be really big. For this purpose, Brainstorms offers an intermediate solution: Creating a pseudo-individual anatomy based on the head points that were digitized with a magnetic tracking system before the MEG acquisition. Those points really represent the shape of the head of the subject, they can be used to scale and deform the Colin27 MRI and surfaces. == Prepare the subject == We are going to test that feature in the protocol ''!TutorialRaw'', created in the tutorial [[Tutorials/TutRawViewer|Review continuous recordings and edit markers]], because it contains a reasonable amount of head points, and it should be already in your database. 1. Select protocol ''!TutorialRaw'', and select the view "Functional data (sorted by subjects)" 1. Create a new subject "!SubjectWarp". Select the option "'''Yes, use default anatomy'''" and '''"Yes, use one channel file per subject"'''. 1. Copy the channel file from ''Subject01/(Common files)'' to ''!SubjectWarp/(Common files)'': Use either the keyboard shortcuts Ctrl+C and Ctrl+V, or the popup menus ''File > Copy/Paste''. {{attachment:treeBefore.gif}} == Check MRI/MEG registration == This process is very sensitive to the initial position of the head points relatively to the scalp surface. You really want to make sure that the alignment is correct before running the deformation of the default anatomy, and fix it if necessary. * Right-click on SubjectWarp's channel file > '''MRI registration > Check'''. * The initial alignment is very bad and has to be fixed. We do not recommend to use the automatic registration at this point, because we are trying to align those points on a completely different head shape. We are going to fix the position manually. * Close the figure, and this time select: '''MRI registration > Edit'''. * Use . {{attachment:refineBefore.gif}} {{attachment:refineAfter.gif}} == Warping anatomy == Right-click on the channel file > Head points > Warp > Deform default anatomy to fit these points. . {{attachment:warpPopup.gif}} Go in the Anatomy view of the protocol (first button on top of the database explorer). All the files from the default anatomy MNI/Colin27, MRI and surfaces, have been deformed to fit the head points from the channel file of !SubjectWarp. The following figures represent the anatomy before (left) and after (right). . {{attachment:warpDone.gif}} . == Feedback == <>