CMTK used to have a landmarks based registration tool based on VTK code called align_landmarks. In combination with munger.pl this allowed initialisation of CMTK affine/warp registrations by an initial affine calculated from pairs of landmarks in each sample brain and a corresponding set in a reference brain.
You should save landmarks in IGS format from Fiji's Landmarks … Name Landmarks and Register plugin inside the images folder (ie next to the sample images) and also in the refbrain folder next to the reference brain. There is a slight complication because the plugin understands two formats (referred to as .points
and .landmarks
format). You can only reload the landmarks in the plugin from .points
format, but CMTK can only understand .landmarks
format. It is therefore necessary to save both (.points
so you can fix points in the future, .landmarks
for the actual registration).
A sensible set of landmarks has been defined for IS2 and lives here:
/Volumes/JData/JPeople/Common/Neuroanatomy/ReferenceBrains/AverageBrainInterSex/IS2.points
To choose landmarks in your sample brain:
You need to have a set of reference landmarks next to the template brain used by your registration. A typical layout would be:
or you can just use
/Volumes/JData/JPeople/Common/Neuroanatomy/ReferenceBrains/AverageBrainInterSex/IS2.nrrd
as your template since that folder contains the necessary landmarks files.
The align_landmarks tool got removed at some point but lives on in IGSRegistrationTools, latest version here:
/Volumes/JData/JPeople/Common/Software/Scientific/IGSRegistrationTools-2012-08-02.zip
In order to use this, you have to run munger.pl
on a registration folder
-L
switch Help for those two switches:
-L find initial affine transform using landmarks -b [path] bin directory
If you have IGSRegistrationTools installed in its normal location and CMTK installed from the NITRC binary installer, you can do something like
sudo ln -s /Applications/IGSRegistrationTools/RegistrationRunner.app/Contents/Resources/align_landmarks /opt/local/bin
to make sure that align_landmarks is in your path. You will need to edit your ~/.profile
to ensure that the PATH
is set appropriately if you did not do this when you installed CMTK. Note that it is essential that align_landmarks
and the other CMTK binaries are in the same folder to ensure that munger
behaves.