Butterfly

a multi-start registration example

View the Project on GitHub stnava/butterfly

butterfly

use a simple multi-start procedure to overcome bad initialization for image registration

b1b2b3

run multistart.sh in this directory.

antsAffineInitializer 2 butterfly-3.jpg butterfly-15.jpg  butter.mat  30 0.5

antsApplyTransforms -d 2 -i butterfly-15.jpg -o test.nii.gz -t butter.mat -r butterfly-3.jpg

ConvertImagePixelType test.nii.gz ms_result.jpg 1 

antsAffineInitializer performs a few searches around a starting point ...

in this case, it searches in 30 degree increments over 1/2 a radian.