Hi Marina

what kind of function do you mean? There is c++ code that does this in the file mrishash.cpp, but it is a bit complicated (you have to build a spatial lookup table at a user-specified resolution, then use it in the vertex finding code). Alternatively if you don't have to do this a lot you can just run through the list of vertices and find the one that is closest to your MNI coord

cheers
Bruce


On Tue, 28 Apr 2020, Marina Fernández wrote:


        External Email - Use Caution        

Dear Freesurfer experts,

I would like to convert the x, y, z MNI152 coordinates into the vertex index
of the fsaverage5.

I would like to do it with a function that can give me the vertex index as
output, because I would like to use this information in a matlab script that
continues with more calculations.

Is there any function that can give me the vertex index (which corresponds
to certain coordinates) as output?

Thank you very much for your attention.

Best wishes,
Marina

_______________________________________________
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer

Reply via email to