External Email - Use Caution
Dear FreeSurfer experts,
given a voxel in the cortex of the fsaverage subject, I would like to find the vertex on the surface that corresponds to the voxel (e.g., if volume data would be projected to the surface).
I found the documentation at http://freesurfer.net/fswiki/CoordinateSystems, which helped me a lot, but it would be great if someone could comment on whether or not what I'm doing is correct:
This seems to be use case 4 on the page (bottom), so I would: 1) get the affine matrix by running: mri_info --vox2ras-tkr $FREESURFER_HOME/subjects/fsaverage/mri/orig.mgz 2) Apply the matrix to my voxel x, y, z to get the coords
At this point I'm not sure how to get the vertex. Should I just compute the distance from the coords to all vertices and pick the one with minimal Euclidian distance?
Tim
-- Dr. Tim Schäfer Postdoc Computational Neuroimaging Department of Child and Adolescent Psychiatry, Psychosomatics and Psychotherapy University Hospital Frankfurt, Goethe University Frankfurt am Main, Germany