Hi All,
We would like to obtain a matrix to go from the orig.mgz/001.mgz space to freesufer space (i.e. that of T1.mgz, brain.mgz etc). I'm not sure which combination of vox2ras and ras2vox of the 2 volumes to extract to be able to obtain say for example, matrix T below.
[orig.mgz (appended with ones for extra dimension] = T * [T1.mgz (appended with ones for extra dimension];
On a separate note, I'm using the affine function shown here in the below link to test out the transformations. The function does the interpolation by trilinear interpolation, and does rotation, shearing, scaling etc first, and the translation as a last step. http://www.mathworks.com/matlabcentral/fileexchange/21080. Is this the same or almost the same procedure used in going from scanner space to freesurfer space?
Thanks a lot!
Cheers, Trina