External Email - Use Caution        

Hi Marina,

If you are already downloaded our lab's repo, then this function MARS_findNV_kdTree.m (https://github.com/ThomasYeoLab/CBIG/blob/master/external_packages/SD/SDv1.5.1-svn593/BasicTools/MARS_findNV_kdTree.m) would help.

Alternatively, if you are comfortable with coding stuff yourself, you can just read the fsaverage5 and fsaverage ?h.sphere meshes in matlab using read_surf.m (freesurfer function). You can then find the closest vertex yourself by computing Euclidean distances between the vertices.

Regards,
Thomas

On Thu, Apr 30, 2020 at 1:02 AM Marina Fernández <marina.fdez.alvarez@gmail.com> wrote:

        External Email - Use Caution        

Thank you for the information, Bruce and Thomas!

Thomas, I think this utility is perfect! I tried it with fsaverage subject without problems.
 Do you think I can use this function to calculate the vertex of the fsaverage5 (instead of the fsaverage)?

Really, thank you very much, this help is very useful for us!
Best regards,
Marina
_______________________________________________
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer