Hi Joel
there is internal code for this where we create a spatial lookup/hash
table and use it to find the closest vertex, but it is just a set of c
functions.
cheers
Bruce
On Tue, 4 Sep 2018, Bruss, Joel E wrote:
External Email - Use Caution
Ah, that makes sense. Short of calculating a Euclidean distance between every
surface RAS and my
point I'd like on the surface, then grabbing the one with the shortest
distance, is there a
function/utility in FreeSurfer that will generate the closest vertex for me?
____________________________________________________________________________________________________
From: freesurfer-boun...@nmr.mgh.harvard.edu
<freesurfer-boun...@nmr.mgh.harvard.edu> on behalf of
Ehsan Tadayon <ehsan.tadayo...@gmail.com>
Sent: Tuesday, September 4, 2018 2:05:05 PM
To: Freesurfer support list
Subject: Re: [Freesurfer] [External] Re: SurfaceRAS to Vertex coordinate system
External Email - Use Caution
[cbb23410d862335b08d6bf64e91c01427a4b6868.png?u=375924]
There is no linear transformation between the two. Vertex coordinate is
equal to
surfaceRAS when the point that you have selected is actually one of the
vertices on the
chosen surface. However, if the point is not on the surface, it finds the
nearest
vertex. So, you can read your surface ( in matlab : [vertices, faces] =
read_surf('lh.pial') ) and then find the vertex that is closest to your
selected point
(surfaceRAS). This is the vertex that you see in the Freeview.
Ehsan.
____________________________________________________________________________________________________
Notice: This UI Health Care e-mail (including attachments) is covered by the
Electronic
Communications Privacy Act, 18 U.S.C. 2510-2521 and is intended only for the
use of the individual
or entity to which it is addressed, and may contain information that is
privileged, confidential,
and exempt from disclosure under applicable law. If you are not the intended
recipient, any
dissemination, distribution or copying of this communication is strictly
prohibited. If you have
received this communication in error, please notify the sender immediately and
delete or destroy all
copies of the original message and attachments thereto. Email sent to or from
UI Health Care may be
retained as required by law or regulation. Thank you.
____________________________________________________________________________________________________
_______________________________________________
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.