The Forward Solution
This page covers the definitions of different coordinate systems employed in MNE software and FreeSurfer, the details of the computation of the forward solutions, and the associated low-level utilities.
MEG/EEG and MRI Coordinate Systems
The coordinate systems used in MNE software (and FreeSurfer) and their relationships are described below. Except for the sensor coordinates, all of the coordinate systems are Cartesian and have the "RAS" (Right-Anterior-Superior) orientation, i.e., the axis points to the right, the axis to the front, and the axis up.
The following diagram shows the relationships between all coordinate systems and the transformations connecting them:
Figure: MEG/EEG and MRI coordinate systems and the transformations between them. (Device → Head) is determined during MEG acquisition via HPI coils. (Head → MRI) is established during coregistration. and are provided by FreeSurfer.
Coordinate Systems Related to MEG/EEG Data
Head coordinates
This is a coordinate system defined with help of the fiducial landmarks (nasion and the two auricular points). In FIFF files, EEG electrode locations are given in this coordinate system. In addition, the head digitization data acquired in the beginning of an MEG, MEG/EEG, or EEG acquisition are expressed in head coordinates.
Device coordinates
This is a coordinate system tied to the MEG device. The relationship of the Device and Head coordinates is determined during an MEG measurement by feeding current to three to five head-position indicator (HPI) coils and by determining their locations with respect to the MEG sensor array from the magnetic fields they generate.
Sensor coordinates
Each MEG sensor has a local coordinate system defining the orientation and location of the sensor. With help of this coordinate system, the numerical integration data needed for the computation of the magnetic field can be expressed conveniently. The channel information data in the FIFF files contain the information to specify the coordinate transformation between the coordinates of each sensor and the MEG device coordinates.
Coordinate Systems Related to MRI Data
Surface RAS coordinates
The FreeSurfer surface data are expressed in this coordinate system. The origin of this coordinate system is at the center of the conformed FreeSurfer MRI volumes (usually 256 × 256 × 256 isotropic 1-mm³ voxels) and the axes are oriented along the axes of this volume. The BEM surface and the locations of the sources in the source space are usually expressed in this coordinate system in the FIFF files. In this manual, the Surface RAS coordinates are usually referred to as MRI coordinates unless there is need to specifically discuss the different MRI-related coordinate systems.
RAS coordinates
This coordinate system has axes identical to the Surface RAS coordinates but the location of the origin is different and defined by the original MRI data, i.e., the origin is in a scanner-dependent location. There is hardly any need to refer to this coordinate system explicitly in the analysis with the MNE software. However, since the Talairach coordinates are defined with respect to RAS coordinates rather than the Surface RAS coordinates, the RAS coordinate system is implicitly involved in the transformation between Surface RAS coordinates and the two Talairach coordinate systems.
MNI Talairach coordinates
The MNI Talairach coordinate system provides a standard brain space. This transformation is determined during the FreeSurfer reconstruction process. These coordinates are in MNI305 space.
FreeSurfer Talairach coordinates
The problem with the MNI Talairach coordinates is that the linear MNI Talairach transform does not match the brains completely to the Talairach brain. This is because the Talairach atlas brain is a rather odd shape, and as a result, it is difficult to match a standard brain to the atlas brain using an affine transform. As a result, the MNI brains are slightly larger (in particular higher, deeper and longer) than the Talairach brain. The differences are larger as you get further from the middle of the brain, towards the outside. The FreeSurfer Talairach coordinates mitigate this problem by adding an additional transformation, defined separately for negative and positive MNI Talairach coordinates. These two transformations, denoted by and , are fixed as follows:
Coordinate Transformations
The different coordinate systems are related by coordinate transformations. Generally:
where , , and are the location coordinates in two coordinate systems, is the coordinate transformation from coordinate system "1" to "2", , , and is the location of the origin of coordinate system "1" in coordinate system "2", and are the elements of the rotation matrix relating the two coordinate systems.
The following table shows where coordinate transformations are stored:
| Transformation | FreeSurfer | MNE |
|---|---|---|
| (Device → Head) | Not present | Measurement data files, Forward solution files, Inverse operator files |
| (Sensor → Device) | Not present | Channel information in files containing |
| (Head → MRI) | Not present | MRI description files, -trans.fif files, Forward solution files, Inverse operator files |
| (MRI voxel → Surface RAS) | mri/*.mgz files | Internal reading |
| (Surface RAS → MNI Talairach) | mri/transforms/talairach.xfm | Internal reading |
| and | Hardcoded in software | Hardcoded in software |
In FreeSurfer, MNE, as well as in Neuromag software an integer voxel coordinate corresponds to the location of the center of a voxel.
The Head and Device Coordinate Systems
The MEG/EEG head coordinate system employed in the MNE software is a right-handed Cartesian coordinate system. The direction of the axis is from left to right, that of the axis to the front, and the axis thus points up.
The axis of the head coordinate system passes through the two periauricular or preauricular points digitized before acquiring the data with positive direction to the right. The axis passes through the nasion and is normal to the axis. The axis points up according to the right-hand rule and is normal to the plane.
The origin of the MEG device coordinate system is device dependent. Its origin is located approximately at the center of a sphere which fits the occipital section of the MEG helmet best with axis going from left to right and axis pointing front. The axis is normal to the plane with positive direction up.
The above definition is identical to that of the Neuromag MEG/EEG (head) coordinate system. However, in 4D Neuroimaging and CTF MEG systems the head coordinate frame definition is different. The origin of the coordinate system is at the midpoint of the left and right auricular points. The axis passes through the nasion and the origin with positive direction to the front. The axis is perpendicular to the axis and lies in the plane defined by the three fiducial landmarks, positive direction from right to left. The axis is normal to the plane of the landmarks, pointing up. Note that in this convention the auricular points are not necessarily located on the coordinate axis. The file conversion utilities take care of these idiosyncrasies and convert all coordinate information to the MNE software head coordinate frame.
Creating the Source Space
Surface-Based Source Space
The FIFF format source space files containing the dipole locations and orientations are created from the FreeSurfer surface reconstructions.
Volumetric or Discrete Source Space
In addition to source spaces confined to a surface, the MNE software provides support for three-dimensional source spaces bounded by a surface as well as source spaces comprised of discrete, arbitrarily located source points.
Creating the BEM Meshes
Topology Checks
The following topology checks are performed during the creation of BEM models:
-
Completeness: The total solid angle subtended by all triangles from a point inside the triangulation is calculated. The result should be very close to . If the result is instead, the ordering of the triangle vertices may be incorrect and the
--swapoption should be specified. -
Correct ordering: The surfaces are verified to be inside each other as expected by checking that the solid angles subtended by triangles of a surface at all vertices of another surface (which is supposed to be inside it) equals