Where did you get the vox2ras matrix that save_mgh takes? And what space are the surface fiords in? There is extensive documentation on our wiki fir the various coordinate systems we use Cheers Bruce
On Dec 21, 2010, at 8:06 PM, "Micheli, C." c.micheli@fcdonders.ru.nl wrote:
Dear all I would like to write an MRI anatomical volume and a surface in freesurfer format. The surface is correspondent to the white matter tessellation, while the volume represents T1 anatomical slices, both obtained from softwares external to FreeSurfer.
Using the two functions save_mgh.m and write_surf.m from the freesurfer matlab interface files I am able to write the variables in the proper freesurfer folders.
In the original nifti format volume and surface match both in voxel space and in millimiters space, but as soon as i visualize them in tkmedit the surface is shifted. Any clue why this happens? Is there any matrix that automatically translates the surface coordinates when it is read in tkmedit?
I hope to get your feedback soon
Best regards Cristiano
Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer