I have some questions related to register_volumes program:
1. Is it possible to generate the affine matrix or warp file of transformation when registering two images?
2. is it possible to reduce the run time of nonrigid registration using some parameters?
3. For nonrigid registration using a mask, How I can set the "Options.maskMoving". I tried several times using any sort of mask file type with the same dimention, but didn't work.
Thanks for your comment. There is a typo in the help part of image_difference.m file. When I run "help image_difference", in the example section I see:
[t,I]=registration_error(I1, I2, 'sd');
It shold be changed to:
[t,I]=image_difference(I1, I2, 'sd');
I encountered another problem in registration_volumes. When I run this command:
Ireg= register_volumes(vol1, vol1, Options) That:
Options.Registration= 'Affine', all of the voxels of the output volume are zero.