== The Surface Registration Process; Templates = Index


This page provides an overview of two related topics:

You might also be interested in these related topics:

Disambiguation: template, atlas, parameterization file, average surface

The FreeSurfer pipeline surface registration process

(In the following "?h." refers to a file name hemisphere prefix of either "lh." or "rh.".)

The registration process includes several key steps:

Inflated Spherical "version" of a subject's surface mesh

As the FreeSurfer pipeline processes a subject's data, the initial white surface mesh is "inflated" to several other states, one of which is a sphere, typically ?h.sphere. The inflation process is constrainted to minimize the total distortion.

Vertex-wise data is applicable to all versions of the surface

The inflation process does not add or remove any vertices, so any data associated with the white vertices (such as curvature or convexity) is still associated with the same-numbered vertices of the sphere mesh. This is the basis of displays such as the following where a per-vertex variable "convexity" of the white surface (aka 'sulc') is plotted in color on the lh.sphere surface.


Registration of a subject's surface

Registration of a subject's surface to a reference consists of a 2-D warp of the subject's sphere surface so that the individual's curvature data pattern aligns with a reference template pattern. The template was previously prepared as the "average" (loosely speaking) pattern from a group of representative subjects. The standard template supplied with FreeSurfer is in the files {fshome}/average/?h.average.curvature.filled.buckner40.tif.

Registration output

The output from registration is yet another version of the subject's surface mesh, typically named ?h.sphere.reg, with the x,y,z vertex positions still on a sphere, but warped so that the subject's curvature pattern best aligns with the template data. Here is the same convexity data, now plotted on the lh.sphere.reg surface. Similar pattern, but "stretched around".


Registration process diagram

The diagram below summarizes the registration process. Program mris_register inputs a specific subject's ?h.sphere file and associated sulc and curv data from the inflated and smoothwm surfaces. The program compares these to the template file input. The registration sphere, ?h.sphere.reg is output.


Creating a registration template initialized with FreeSurfer template (DG)

Initializing a custom registration template with the FreeSurfer template is desireable because it will not depend on any one subject from your group (as opposed to creating a template from scratch).

Create an average subject (Creates $SUBJECTS_DIR/newtemplate)

make_average_subject --out newtemplate --subjects subj1 subj2 subj3 ...

Register each subject to the new template (do for both lh and rh) Creates lh.sphere.reg.newtemplate and rh.sphere.reg.newtemplate

foreach subject (subj1 subj2 subj3 ...)
  cd $SUBJECTS_DIR/subject
  mris_register -curv surf/lh.sphere \
     $SUBJECTS_DIR/newtemplate/lh.reg.template.tif \

Get thickness values in the newtemplate space for GLM analysis

mris_preproc --surfreg sphere.reg.newtemplate --s subj1 --s subj2 --s subj3 ...

Create another average template based on the previous one: (Creates $SUBJECTS_DIR/newnewtemplate)

make_average_subject --out newnewtemplate --surf-reg
sphere.reg.newtemplate \
  --subjects subj1 subj2 subj3 ...

Creating a registration template from scratch (GW)

(This section reports on what I (GW) have learned of the registration process from Bruce Fischl. and Doug Greve, along with reading the source code. I have not actually tried it.)

The process of creating a template involves calculating a "mean" (across subjects) pattern of curvature-related values, along with the variance of these variables. This task is performed by program mris_make_template. However, mris_make_template expects the input subjects to be already aligned (ie: already have ?h.sphere.reg files). This of course will not be the case if you are about to create a template!

Process Diagram

Consequently, the process proceeds iteratively, as shown in the following figure.


The process starts ("Prep") by choosing one reference subject, and producing a template (Here, mytemp0.tif). No ?h.sphere is required -- this step uses the subject's own pattern as the reference.

If Round 1, all reference subjects data are registered to the initial template, producing ?h.sphere.myreg0. (I've coordinated the suffix numbers with the template used to produce the registration.) Using that registration, a new template (mytemp1.tif) is made using all reference subjects as input.

Round 2 is essentially a repeat of Round 1, but produces an improved template (mytemp2.tif) because Round 2's initial registration step is based on a better template than in Round 1.

Sidenote: mris_register performs more of a rigid registration when it notices that the input template has degrees-of-freedom=1, as it is in Round 1, being based on only one subject. When dof is higher, as in Round 2, mris_register performs a more flexible warp.

The steps in the blue box could be iterated again if needed, but from what I've learned from Bruce F., this is generally not necessary.


1. The above diagram assumes that the subjects have all been processed once by FreeSurfer's recon-all pipeline or similar to produce all the required files needed for the template-creation process. Recon-all will also have produced ?h.sphere.reg aligned to the standard reference template (?h.average.curvature.filled.buckner40.tif), and corresponding annotation files -- for purposes here, these can be ignored. Indeed, once a satisfactory new template has been created, the recon-all script can be modified to use the new template, and the subjects can be re-run to create new improved annotations.

2. GW comment: Since the process uses a particular subject as the starting point, the final position of the template pattern is dependent on that first subject. The iterations of registration and template creation work to improve the variance aspect of the template.

3. For technical details on the template file contents and format, see: TemplateTifImageFiles.


The registration process is a main topic in: High-resolution inter-subject averaging and a coordinate system for the cortical surface, Fischl, B., Sereno, M.I., Tootell, R.B.H., and Dale, A.M., (1999). Human Brain Mapping, 8:272-284(1999). See ArticlesSlidesAndPosters

Document Author(s)

Graham Wideman (GrahamWideman)

SurfaceRegAndTemplates (last edited 2011-05-16 10:21:28 by tanha)