You can use mri_vol2surf, something like mri_vol2surf --closest-vertex x y z coords ltafile surf outfile where xyz is a coordinate (eg, the center or edge or you lesion). coords: 1=scanner,2=tkreg (you can pick the xyz from the freeview scanner or tkreg ras) if these coordinates are in the same space as the anatomical (ie, conformed, 1mm, 256^3), then set ltafile to nofile surf is the surface file (eg, lh.white) The outfile will have the vertex number of the closest vertex.
On 11/21/2023 12:49 PM, John Anderson wrote:
External Email - Use Caution
Dear Freesurfer Experts, I would like to inquire if there is a FreeSurfer command that allows me to measure the distance (in voxels or mm) between a lesion mask (output of samseg) and the closest voxels in the ribbon after applying "recon-all" to T1 images. If there is no such command, I am considering measuring the center of the lesion mask and calculating the distance between this center and every voxel in the closest parcel in the ribbon, then selecting the shortest distance. i'm not sure if this is the correct approach so I appreciate your suggestions. Thank you John
On Mon, Nov 20, 2023 at 7:13 AM John Anderson jb19790001@gmail.com wrote:
Dear FreeSurfer experts, I would like to know if there is a command in FreeSurfer that can help me measure the distance (in voxels or mm) between a lesion mask and the closest voxels in the ribbon after applying recon-all to T1 images. Thanks for your advice John
Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer