Watch this Author's files
Hi Dirk, very good work and thank you. I think there is a minor bug here.
In the file "affine_registration_error.m You should have if(~exist('Spacing','var')),Spacing=; end
Or else, when you run rigid or affine registration, you will always ave to specify the space which is only necessary when bspline registration is used.