There are number of things that are worth optimising when first starting to register a new kind of image. These include some of the parameters that are fed to the initial affine and warping registration.

First it is important to make sure that the initial affine step is giving a good seed to the warp. If the affine isn't working well the warp may never be able to clean up the mess.

Although some parameters are scale free (perhaps the key one is --energy-weight), several of the other key parameters are expressed in the space units (ie microns or mm) of the image data. It may be necessary to vary these according to the field of view of the image.

Initial Affine Registration

(See also all affine parameters)

munger.pl -r 01 -l a -s <referencebrain> <sample brain/dir>

If you are using munger.pl or the simple GUI (which calls munger) you need to pass these parameters onto the affine registration program using munger's -A switch. For example your standard munger.pl command line invocation might look like:

munger.pl -awr 01 -s image reference.pic .

Some recent experimentation suggests that it would be a good idea to use a lower accuracy (--accuracy) for the initial affine. It seems that a large part of the time is being spent on the final step sizes. By default these go to 0.1 µm which seems excessive since the affine will be be cleaned up by the subsequent warping registration anyway. It seems to me that 1 µm should be fine.

To change these affine parameters from the defaults, you would change your command line as follows:

munger.pl -awr 01 -A '--exploration 16 --metric 4 --accuracy 1' -s image reference.pic .

Warping Registration

(See also all warp parameters) and munger.pl parameters.

Note that if you are using munger.pl or the simple GUI (which calls munger) there are 2 ways to access some of the key warp command line parameters. You can either specify a parameter directly to munger or you can use a general method for passing parameters onto warp unchanged.

If you are using munger.pl or the simple GUI (which calls munger) you need to pass these parameters onto the warp registration program using munger's -W switch. For example your standard munger.pl command line invocation might look like:

munger.pl -awr 01 -s image reference.pic .

To change these warp parameters from the defaults that munger will pass, you would change your command line as follows:

munger.pl -awr 01 -W '--exploration 26 --coarsest 8 --grid-spacing 80 --refine 4 --accuracy 0.2' -s image reference.pic .

However it is recommended that you do this:

munger.pl -awr 01 -X 26 -C 8 -G 80 -R 4 -W '--accuracy 0.2' -s image reference.pic .

because munger.pl will use some of these values to give the output files different names.

NB Step sizes have to be a power of 2 times the minimum exploration which is set by –accuracy. So if you have accuracy=0.2 and exploration=26, What you will actually get is:

25.6 12.8 6.4 3.2 1.6 0.8 0.4 0.2

so in practice –exploration 30 and –exploration 25 may give very different initial step sizes (25.6 µm and 12.8 µm, respectively)