Hi! :)
I have to write a script that uses the parameters of the transformation matrix
used by SPM in the coregistration of two images. (the transformation used to
bring the source image in the space of the reference image)
My question is: Where can I find the transformation matrix?
I know from the SPM manual that the parameters of the matrix are visualized
in the final display after the coregistration, but I need
to know the exact location in which they are saved, in order to be able to get
them automatically with a script.
I read that the matrix should be contained in the header of the co-registered
image, but I can't find it! (in the header struct, the fields "old affine" and "new
affine" are matrix, but not the one I'm interested in)
I also read here that the information could be found in a *.mat file produced
by the coregistration, but I don't get any *.mat file when I coregister!
Only if I use in "SPM --> coregistration" the command "save", choosing .mat
file, SPM producese an "Access table" which seems to be empty! (or I'm not
be able to read the content..what programm should I use to open it?)
Thank you very much if anyone can help me..!
Best Regards
Giulia Preti
|