11481
Comment:
|
10558
|
Deletions are marked like this. | Additions are marked like this. |
Line 20: | Line 20: |
{{attachment:NAS.gif}} | {{attachment:NAS.gif||height="213",width="599"}} |
Line 23: | Line 23: |
<<HTML(<div style="float: left; clear: right; margin: 0px 20px 0px 20px;">)>> {{attachment:preauricular.gif||height="235",width="148"}} <<HTML(</div>)>> |
|
Line 25: | Line 29: |
Our proposition is to use instead the junction between the tragus and the helix, marked with a red dot in the following figure. It can be located much more precisely both anatomically and on the MRI slices. | Our proposition is to use instead the junction between the tragus and the helix, marked with a '''red dot''' in this figure. It can be located much more precisely both anatomically and on the MRI slices. |
Line 27: | Line 31: |
{{attachment:preauricular.gif}} | You can choose to use this definition of the "preauricular point" or not. The most important is to use the same convention for all the steps: digitization of head points (eg. Polhemus) and analysis with Brainstorm. <<HTML(<div style="clear: both;"></div>)>> |
Line 31: | Line 37: |
{{attachment:LPA.gif}} You can choose to use this definition of the "preauricular point" or not. The most important is to use the same convention for all the steps: digitization of head points with a magnetic system (Isotrak Polhemus, ...), and analysis with Brainstorm.<<BR>><<BR>> |
{{attachment:LPA.gif||height="213",width="599"}} |
Line 36: | Line 40: |
Using a CTF system, you would probably prefer to use the head localization coils to indicate those NAS/LPA/RPA points, instead of those "anatomically correct" points. The coordinate system in the CTF files is based on the position of the three coils you stick on the head of the subject. Typically, the nose coil is slightly above the nasion, and the ear coils about one centimeter more frontal than the points that were previously described. | Using a CTF system, you would probably prefer to use the head localization coils to indicate these NAS/LPA/RPA points, instead of these "anatomically correct" points. The coordinate system in the CTF files is based on the position of the three coils you stick on the head of the subject. Typically, the nose coil is slightly above the nasion, and the ear coils about one centimeter more frontal than the points that were previously described. |
Line 42: | Line 46: |
__'''IMPORTANT'''__: Those comments __do not apply__ if you use the [[Tutorials/TutDigitize|Brainstorm Digitize]] program to drive the Polhemus device. In this case, you are asked to digitize two sets of NAS/LPA/RPA points: the coils and the real anatomical points. Just make a copy of the .pos file saved by Digitize in the .ds folder, then set the real anatomical points in the MRI. Brainstorm is going to handle automatically the transformation between the CTF coils coordinate system and the real subject coordinate system. The result is usually much more accurate and does not require to take pictures of the subjects. | __'''IMPORTANT'''__: These comments __do not apply__ if you use the [[Tutorials/TutDigitize|Brainstorm Digitize]] program to drive the Polhemus device. In this case, you are asked to digitize two sets of NAS/LPA/RPA points: the coils and the real anatomical points. Just make a copy of the .pos file saved by Digitize in the .ds folder, then set the real anatomical points in the MRI. Brainstorm is going to automatically handle the transformation between the CTF coils coordinate system and the real subject coordinate system. The result is usually much more accurate and does not require to take pictures of the subjects. |
Line 45: | Line 49: |
The fiducial points (Nasion, LPA, RPA) used in your recordings might not be the same as the ones used in the anatomy templates in Brainstorm (Colin27, ICBM, FSAverage). By default, the LPA/RPA points are defined at the junction between the tragus and the helix, as represented with the red dot. | The fiducial points (Nasion, LPA, RPA) used in your recordings might not be the same as the ones used in the anatomy templates in Brainstorm (Colin27, ICBM152, FSAverage). By default, the LPA/RPA points are defined at the junction between the tragus and the helix, as represented with the red dot. |
Line 47: | Line 51: |
If you want to use an anatomy template but you are using a different convention when digitizing the position of those points, you have to modify the default positions of the template with the MRI Viewer. | If you want to use an anatomy template but you are using a different convention when digitizing the position of these points, you have to modify the default positions of the template with the MRI Viewer. |
Line 55: | Line 59: |
Two types of normalized coordinates are widely used in the literature: the atlas defined by [[http://en.wikipedia.org/wiki/Jean_Talairach|Jean Talairach]], and the [[http://www.bic.mni.mcgill.ca/~louis/stx_history.html|MNI stereotaxic coordinates]]. You can read about the differences between those two systems on that page: http://imaging.mrc-cbu.cam.ac.uk/imaging/MniTalairach | Two types of normalized coordinates are widely used in the literature: the atlas defined by [[http://en.wikipedia.org/wiki/Jean_Talairach|Jean Talairach]], and the [[http://www.bic.mni.mcgill.ca/~louis/stx_history.html|MNI stereotaxic coordinates]]. You can read about the differences between these two systems on that page: http://imaging.mrc-cbu.cam.ac.uk/imaging/MniTalairach |
Line 57: | Line 61: |
Two of the templates distributed with Brainstorm ([[http://neuroimage.usc.edu/brainstorm/Tutorials/TutFirstSteps#Change_the_default_anatomy|Colin27 and ICBM152]]) are registered in the MNI stereotaxic space, therefore the "MNI coordinates" can be derived easily from the MRI voxel coordinates. For those two brains, you can read the normalized MNI coordinates directly in the interface ("MRI Viewer" or "Get coordinates" menu). The values should be almost identical to what you get when opening those volumes with the "Display" program from the [[http://en.wikibooks.org/wiki/MINC|MINC tools]]. | Two of the templates distributed with Brainstorm ([[http://neuroimage.usc.edu/brainstorm/Tutorials/TutFirstSteps#Change_the_default_anatomy|Colin27 and ICBM152]]) are registered in the MNI stereotaxic space, therefore the "MNI coordinates" can be derived easily from the MRI voxel coordinates. For these two brains, you can read the normalized MNI coordinates directly in the interface ("MRI Viewer" or "Get coordinates" menu). The values should be almost identical to what you get when opening these volumes with the "Display" program from the [[http://en.wikibooks.org/wiki/MINC|MINC tools]]. |
Line 59: | Line 63: |
To be able to get "MNI coordinates" for individual brains, an extra step of normalization is required. The method we use in Brainstorm is based on a affine co-registration with the MNI ICBM152 template from the SPM software. | To be able to get "MNI coordinates" for individual brains, an extra step of normalization is required.<<BR>>The method we use in Brainstorm is based on an affine co-registration with the MNI ICBM152 template from the SPM software. This function directly uses code from SPM12 (spm_maff8 ©J Ashburner), described in the following article: Ashburner J, Friston KJ, [[http://www.ncbi.nlm.nih.gov/pubmed/15955494|Unified segmentation]], NeuroImage 2005 |
Line 61: | Line 65: |
To compute the linear transformation matrix between the individual MRI and the ICBM152 template:<<BR>> - In the MRI Viewer, click on the "Click here to compute MNI transformation"<<BR>> - Right-click on the MRI > Compute MNI transformation. | To compute the linear transformation matrix between the individual MRI and the ICBM152 template: * In the MRI Viewer: Click on the link "Click here to compute MNI transformation". * In the database explorer: Right-click on the MRI > '''Compute MNI transformation'''. |
Line 64: | Line 71: |
If we cannot compute the MNI transformation as presented in the previous section, we use an approximation to the Talaraich coordinate system. It relies on two points, the posterior and anterior commissure, and the midsagittal plane. The third point needed here, the interhemispheric point, is used to define this plane. You can read about the differences between those two systems on that page: | If we cannot compute the MNI transformation as presented in the previous section, we use an approximation to the Talaraich coordinate system. It relies on two points, the posterior and anterior commissure, and the midsagittal plane. The third point needed here, the interhemispheric point, is used to define this plane. You can read about the differences between these two systems on that page: |
Line 77: | Line 84: |
{{attachment:AC.gif}} | {{attachment:AC.gif||height="214",width="601"}} |
Line 88: | Line 95: |
{{attachment:PC.gif}} | {{attachment:PC.gif||height="213",width="600"}} |
Line 93: | Line 100: |
{{attachment:IH.gif}} <<BR>><<BR>> | {{attachment:IH.gif||height="213",width="599"}} <<BR>><<BR>> |
Line 115: | Line 122: |
==== MRI (voxels) to MRI (millimeters) ==== Get the structure sMri from the database: right-click on the MRI file > File > Export to Matlab > sMri. |
The conversions between coordinate systems is handled with one single function cs_convert: |
Line 118: | Line 124: |
For one point P_mri(x,y,z), coordinates in voxels: | * sMri: MRI structure from the database: right-click on the MRI file > File > Export to Matlab > sMri * src/dest: Source and destination coordinates systems: {'voxel', 'mri', 'scs', 'mni'} * P: List of points [Npoints x 3] * All the the coordinates have to be in '''meters''' (not millimeters). |
Line 120: | Line 129: |
. {{{ P_mm = P_voxels .* sMri.Voxsize; |
{{{ Pdest = cs_convert(sMri, 'src', 'dest', Psrc); |
Line 123: | Line 132: |
Examples: | |
Line 124: | Line 134: |
For a set of points P_mri, size: [nPoints x 3]: . {{{ P_mm = bst_bsxfun(@times, P_voxels, sMri.Voxsize); |
{{{ P_mri = cs_convert(sMri, 'voxel', 'mri', P_voxel); % Voxel => MRI coordinates P_mni = cs_convert(sMri, 'scs', 'mni', P_scs); % SCS => MNI coordinates |
Line 129: | Line 138: |
==== MRI (meters) to SCS (meters) ==== You need the a structure sMri that contains at least the information about the fiducial points (nasion, left ear, right ear). Coordinates of the reference points in '''__millimeters__'''. . {{{ sMri.SCS.NAS = [x, y, z]; sMri.SCS.LPA = [x, y, z]; sMri.SCS.RPA = [x, y, z]; }}} To compute the transformation (rotation + translation) from the MRI coordinate system (millimeters) to the Brainstorm Subject CS (SCS, meters): . {{{ transf = cs_mri2scs(sMri); }}} In case the transformation fields are not available yet in the sMri.SCS structure: . {{{ sMri.SCS.R = transf.R; sMri.SCS.T = transf.T; sMri.SCS.Origin = transf.Origin; }}} To apply the transformation to a set of points P_mri(x,y,z), dimension P=[N,3], coordinates in __meters__: . {{{ P_scs = cs_mri2scs(sMri, P_mri' .* 1000)' ./ 1000; }}} Or (P_mri and P_scs still in '''__meters__'''): . {{{ P_scs = bst_bsxfun(@plus, (sMri.SCS.R * P_mri')', sMri.SCS.T' ./ 1000); }}} ==== MRI (voxels) to SCS (meters) ==== Successive transformations: MRI (voxels) => MRI (millimeters) => SCS (millimteres) => SCS (meters) . {{{ P_mri = bst_bsxfun(@times, P_voxels, sMri.Voxsize); P_scs = cs_mri2scs(sMri, P_mri')' ./ 1000; }}} ==== SCS (meters) to MRI (voxels) ==== SCS (meters) => SCS (millimteres) => MRI (millimeters) => MRI (voxels) . {{{ P_mri = cs_scs2mri(sMri, P_scs' .* 1000)'; P_voxels = bst_bsxfun(@rdivide, P_mri, sMri.Voxsize); }}} ==== MRI (meters) to MNI (meters) ==== MRI (meters) => MRI (millimteres) => MNI (millimeters) => MNI (meters) . {{{ P_mni = cs_mri2mni(sMri, P_mri' .* 1000)' ./ 1000; }}} ==== MNI (meters) to MRI (meters) ==== MNI (meters) => MNI (millimteres) => MRI (millimeters) => MRI (meters) . {{{ P_mni = cs_mni2mri(sMri, P_mri' .* 1000)' ./ 1000; }}} |
== Brainstorm .pos files == The |
Line 200: | Line 146: |
* http://neuroimage.usc.edu/forums/showthread.php?1958-SEEG-electrodes-and-subject-s-anatomy-are-not-alligned |
Coordinate systems
Contents
Subject Coordinate System (SCS / CTF)
Brainstorm uses the CTF coordinate sytem. All the surfaces, sensors and additional points are converted into this system when they are imported in Brainstorm.
It is defined in the following way:
Based on: Nasion, left pre-auricular point (LPA), and right pre-auricular point (RPA).
Origin: Midway on the line joining LPA and RPA
Axis X: From the origin towards the Nasion (exactly through)
Axis Y: From the origin towards LPA in the plane defined by (NAS,LPA,RPA), and orthogonal to X axis
Axiz Z: From the origin towards the top of the head
Nasion (NAS)
The nasion is the intersection of the frontal and two nasal bones of the human skull. Its manifestation on the visible surface of the face is a distinctly depressed area directly between the eyes, just superior to the bridge of the nose (source: Wikipedia).
Use the coronal orientation to define it.
Pre-auricular points (LPA, RPA)
The proper definition of the preauricular point is: "a point of the posterior root of the zygomatic arch lying immediately in front of the upper end of the tragus". This is illustrated with the green point below. The problem with this definition is that it can be really difficult to localize precisely on the MRI. It can lead to severe misregistration between MRI and MEG/EEG. More information on the anatomical location of this point on the FieldTrip website.
Our proposition is to use instead the junction between the tragus and the helix, marked with a red dot in this figure. It can be located much more precisely both anatomically and on the MRI slices.
You can choose to use this definition of the "preauricular point" or not. The most important is to use the same convention for all the steps: digitization of head points (eg. Polhemus) and analysis with Brainstorm.
Use the sagittal orientation to define it.
Notes for CTF users
Using a CTF system, you would probably prefer to use the head localization coils to indicate these NAS/LPA/RPA points, instead of these "anatomically correct" points. The coordinate system in the CTF files is based on the position of the three coils you stick on the head of the subject. Typically, the nose coil is slightly above the nasion, and the ear coils about one centimeter more frontal than the points that were previously described.
A good practice is to take pictures of the subject with the coils on, right before bringing him/her in the MEG, and digitize the position of the center of the coils as the nasion/LPA/RPA. Then, when importing the MRI in Brainstorm, try marking as accurately as possible the position of the coils in the MRI. You cannot be very precise at this point, but the errors here are fixed later with the automatic registration.
IMPORTANT: These comments do not apply if you use the Brainstorm Digitize program to drive the Polhemus device. In this case, you are asked to digitize two sets of NAS/LPA/RPA points: the coils and the real anatomical points. Just make a copy of the .pos file saved by Digitize in the .ds folder, then set the real anatomical points in the MRI. Brainstorm is going to automatically handle the transformation between the CTF coils coordinate system and the real subject coordinate system. The result is usually much more accurate and does not require to take pictures of the subjects.
Using a default anatomy
The fiducial points (Nasion, LPA, RPA) used in your recordings might not be the same as the ones used in the anatomy templates in Brainstorm (Colin27, ICBM152, FSAverage). By default, the LPA/RPA points are defined at the junction between the tragus and the helix, as represented with the red dot.
If you want to use an anatomy template but you are using a different convention when digitizing the position of these points, you have to modify the default positions of the template with the MRI Viewer.
- Go to the anatomy view
In (default anatomy), right-click on the MRI > Edit MRI
- Modify the position of the fiducial points to match your own convention
- Click on [Save], it will update the surfaces to match the new coordinate system
MNI coordinates
Two types of normalized coordinates are widely used in the literature: the atlas defined by Jean Talairach, and the MNI stereotaxic coordinates. You can read about the differences between these two systems on that page: http://imaging.mrc-cbu.cam.ac.uk/imaging/MniTalairach
Two of the templates distributed with Brainstorm (Colin27 and ICBM152) are registered in the MNI stereotaxic space, therefore the "MNI coordinates" can be derived easily from the MRI voxel coordinates. For these two brains, you can read the normalized MNI coordinates directly in the interface ("MRI Viewer" or "Get coordinates" menu). The values should be almost identical to what you get when opening these volumes with the "Display" program from the MINC tools.
To be able to get "MNI coordinates" for individual brains, an extra step of normalization is required.
The method we use in Brainstorm is based on an affine co-registration with the MNI ICBM152 template from the SPM software. This function directly uses code from SPM12 (spm_maff8 ©J Ashburner), described in the following article: Ashburner J, Friston KJ, Unified segmentation, NeuroImage 2005
To compute the linear transformation matrix between the individual MRI and the ICBM152 template:
- In the MRI Viewer: Click on the link "Click here to compute MNI transformation".
In the database explorer: Right-click on the MRI > Compute MNI transformation.
Talairach coordinates
If we cannot compute the MNI transformation as presented in the previous section, we use an approximation to the Talaraich coordinate system. It relies on two points, the posterior and anterior commissure, and the midsagittal plane. The third point needed here, the interhemispheric point, is used to define this plane. You can read about the differences between these two systems on that page:
Anterior commissure (AC)
Description of the anterior commissure at this Wikipedia page.
Technique to localize it:
- Use the axial orientation.
- Start from a slice just below the corpus callosum and move around it (slightly up or down)
- You are looking for a small fiber tract that connects the two hemispheres
- You should find two spots corresponding to this description. The more frontal one is the anterior commissure, the other one is the posterior commissure
- Once you have localized it: if it is visible on more than one slice, use the upper one (the one closest to the top of the head).
Posterior commissure (PC)
Description of the posterior commissure at this Wikipedia page.
Technique to localize it:
- Use the axial orientation
- It is a fiber tract similar to the anterior commissure, but a few centimeters more posterior.
- If it is visible on more than one slice, pick the lowest one.
Interhemispheric point (IH)
Pick any point in the interhemispheric space, somewhere in the top of the head. Do not use a point too close from the commissures.
Neuromag coordinates
This coordinates system is not used in Brainstorm, and described here only FYI. All the information contained in Neuromag .FIF files are in this CS, and converted to Brainstorm SCS at importation.
It is defined in the following way:
Based on: Nasion, left pre-auricular point (LPA), and right pre-auricular point (RPA).
Origin: Intersection of the line L through LPA and RPA and a plane orthogonal to L and passing through the nasion.
Axis X: From the origin towards the RPA point (exactly through)
Axis Y: From the origin towards the nasion (exactly through)
Axiz Z: From the origin towards the top of the head
MRI coordinates
Coordinates system used to index voxels in the space of the MRI volume, in millimeters:
Axis X: left>right
Axis Y: posterior>anterior
Axis Z: bottom>top
- Coordinates of the first voxel at the bottom-left-posterior of the MRI volume: (1,1,1)
Converting between coordinate systems
The conversions between coordinate systems is handled with one single function cs_convert:
sMri: MRI structure from the database: right-click on the MRI file > File > Export to Matlab > sMri
- src/dest: Source and destination coordinates systems: {'voxel', 'mri', 'scs', 'mni'}
- P: List of points [Npoints x 3]
All the the coordinates have to be in meters (not millimeters).
Pdest = cs_convert(sMri, 'src', 'dest', Psrc);
Examples:
P_mri = cs_convert(sMri, 'voxel', 'mri', P_voxel); % Voxel => MRI coordinates P_mni = cs_convert(sMri, 'scs', 'mni', P_scs); % SCS => MNI coordinates
Brainstorm .pos files
The
Additional discussion on the forum
http://neuroimage.usc.edu/forums/showthread.php?1429-Bad-MEG-MRI-coregistration
http://neuroimage.usc.edu/forums/showthread.php?1389-Co-registration