Coordinates in SimNIBS

Definitions

Coordinates in SimNIBS are always world coordinates in subject space. Coordinates are given in millimiters and along x, y and z axis. The origin and the alignment of the axes correspond to those of the original T1w image that was used for head model creation in charm (stored as m2m_subID/T1.nii.gz).

MNI Transformations

During head meshing, SimNIBS calculates 6 degrees-of-freedom, 12 degrees-of-freedom and non-linear MNI transformations. They are stored in the m2m_subID/toMNI/ folder. SimNIBS uses these transformations when transforming simulation results to MNI space (see the Simulation Options Window and map_to_mni attribute).

Command line Utilities

SimNIBS has several command line utilities to transform data and coordinates between MNI and Subject space

Python and MATLAB Functionas

We also provide Python and MATLAB interfaces to transform coordinates between MNI and Subject Space. Those have the signature

  • mni2subject_coords(coords_mni, subdir, transformation_type)

    • coords_mni is a set of coordinates in MNI space

    • subdir is the subject segmentation directory, for example m2m_ernie

    • (Optional) transformation_type is the type of transformation, can be nonl (default), 12dof or 6dof.

And equivalently to subject2mni_coords.