Dear freesurfer experts,
my scene is as follow: i need to find the nearest vertex in the pial surface to a subset of specified control points. I've already checked all the transformation matrices and the points are correctly located either in scanner RAS and in tkrRAS. Now the problem is that using mesh_vertex_nearest freesurfer tool or dsearchn/ DelaunayTri class matlab tools the resulting vertexes are not so correctly located as they visually would be. I'll attach some screenshots from freeview for better understanding.
As you guys can easily see in the attached png ,the cursor is located at the "nearest vertex" position while the control point, which is from the left the second red dot, is at least located at the opposite side of the right hemisphere. This doesn't happen for ALL the points but only for some of them like this one. Is there a more reliable way to compute automatically the nearest vertex for a specified control point?
Thank in advance,