External Email - Use Caution        

Ah, I definitely get it now. Thanks so much to you both! 


Daniel Schwartz

Advanced Imaging Research Center

Layton Aging and Alzheimer's Disease Center

OHSU



From: freesurfer-bounces@nmr.mgh.harvard.edu <freesurfer-bounces@nmr.mgh.harvard.edu> on behalf of Wang, Ruopeng <RWANG4@mgh.harvard.edu>
Sent: Tuesday, November 1, 2022 1:26:43 PM
To: Freesurfer support list
Subject: [EXTERNAL] Re: [Freesurfer] Freesurfer labels vertices and not faces?
 
I’m not sure I get exactly what you wanted to do. But in freeview, surface colors are assigned by vertices, not faces. If the vertices of a face have different colors, the colors will be interpolated across the face by the rendering engine. If you turn on mesh display you will see that. 

On Nov 1, 2022, at 3:04 PM, Daniel Schwartz <schwartd@ohsu.edu> wrote:

        External Email - Use Caution        

I'm trying to display, for example, an aparc.2009 on the pial surface. Because of reasons, I'd really like to display it in MATLAB. Thankfully, mris_convert to an ascii file works great for the surface (and AFNI's "@SUMA_Make_Spec_FS" actually helps convert the whole Freesurfer shebang into NIFTI/GIFTI, etc) to see vertex coordinates, vertex indices for faces, etc. What I really need is an ASCII file that has 1) vertex coords (from pial, or etc.) 2) vertex indices the make up each triangle, and 3) aparc labels for each of the triangles in 2). 

But...  it seems that the index numbers in the left column of an output .label file generated by mri_annotation2label are indices of vertices, not faces, and I honestly just don't understand how Freesurfer goes about coloring a face of a triangle if, say, one of the vertices of that triangle is shared by two different aparc parcels. (Or alternatively, if all three vertices of a triangle "belong" to different labels). 

I'm sorry if I'm mangling this question.  

Daniel Schwartz
Advanced Imaging Research Center
Layton Aging and Alzheimer's Disease Center
OHSU


From: freesurfer-bounces@nmr.mgh.harvard.edu <freesurfer-bounces@nmr.mgh.harvard.edu> on behalf of Fischl, Bruce R.,PHD <BFISCHL@mgh.harvard.edu>
Sent: Tuesday, November 1, 2022 11:49:23 AM
To: Freesurfer support list
Subject: [EXTERNAL] Re: [Freesurfer] Freesurfer labels vertices and not faces?
 
Hi Daniel
 
Can you clarify what you mean? The surfaces don’t have any values/vertex (e.g. scalar fields over the surface like thickness). Those are typically stored in separate files. What are you trying to display on the surface vertices?
Bruce
 
From: freesurfer-bounces@nmr.mgh.harvard.edu <freesurfer-bounces@nmr.mgh.harvard.edu> On Behalf Of Daniel Schwartz
Sent: Tuesday, November 1, 2022 1:24 PM
To: freesurfer@nmr.mgh.harvard.edu
Subject: [Freesurfer] Freesurfer labels vertices and not faces?
 
        External Email - Use Caution        
Hi, 
 
I’ve more of a general question. It seems to me that, if I use mris_convert (to convert to ascii) to take a closer look at, for example, rh.pial.asc, and an annot2label, there are exactly enough rows to label each vertex of each triangle, but not enough label rows to color each face (defined by 3 vertex indices). I don’t really understand how one can “color” a vertex. As an aside, when defining a patch in, say, MATLAB, one defines the color of each row in ‘Faces’. Could someone help me understand what exactly is going on here? As one can imagine it’s bizarrely and frustratingly difficult to search for this question/answer on Google or the Freesurfer listserv.
 
Thanks! 
Daniel
 
_______________________________________________
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer