Re: [Freesurfer] Help: Vertex Properties

2022-11-09 Thread Douglas N. Greve
The coords are in the surface structure, which you can get by running 
mris_convert lh.white lh.white.asc (asc will be an ascii file)  or by 
loading into matlab with read_surf.m
The surface area is computed for white (?h.area) and pial 
(?h.pial.area). These can be converted to mgz or nifti (mri_convert 
lh.area lh.area.{mgz,nii.gz }) or read into matlab with read_curv.m
The other stuff (angles, edge lengths, dist matrix), you will have to do 
yourself but you can get it on a vertex-wise basis with something like

 mris_info --vx 1000 $SUBJECTS_DIR/fsm011/surf/lh.white
vertexno 1000
xyz  -12.5783 -89.7512 33.0777  # the coords
nxyz -0.9930  0.0542  0.1049  # the normal at this vertex
vertex_area 0.668113   # area
neighbors 6
nbr 0    994 0.6636 0.3354  1524 0.2240
nbr 1    669 0.8749 0.9553  1525 0.3357
nbr 2    677 0.8132 0.6240  1538 0.3472
nbr 3   1006 1.0009 1.0769  2226 0.2301
nbr 4   1408 0.9042 0.8405  2227 0.4085
nbr 5   1419 0.9977 1.0954  2238 0.4587

NbrInfo: nbrno, nbrvno, nbrdist, nbrarea, faceno, facearea

On 11/8/2022 3:43 AM, Sarah Lavelle wrote:


External Email - Use Caution

Hi,

I’m wondering if there’s a way to get the properties of individual 
vertices such as:


1)Coordinates
2)Surface area
3)angles
4) Side lengths
5) distance matrix from other vertices

And can you get these properties for individual surfaces/ 
transformations (eg. On the spherical map or flatmap) ?


On the FreeSurfer application or else through matlab?

Any help would be greatly appreciated,
Thanks,

Sarah

___
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
___
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 Mass General Brigham 
Compliance HelpLine at https://www.massgeneralbrigham.org/complianceline 
 .
Please note that this e-mail is not secure (encrypted).  If you do not wish to 
continue communication over unencrypted e-mail, please notify the sender of 
this message immediately.  Continuing to send or respond to e-mail after 
receiving this message means you understand and accept this risk and wish to 
continue to communicate over unencrypted e-mail. 


[Freesurfer] Help: Vertex Properties

2022-11-08 Thread Sarah Lavelle
External Email - Use Caution

Hi,

I’m wondering if there’s a way to get the properties of individual vertices
such as:

1)Coordinates
2)Surface area
3)angles
4) Side lengths
5) distance matrix from other vertices

And can you get these properties for individual surfaces/ transformations
(eg. On the spherical map or flatmap) ?

On the FreeSurfer application or else through matlab?

Any help would be greatly appreciated,
Thanks,

Sarah
___
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 Mass General Brigham 
Compliance HelpLine at https://www.massgeneralbrigham.org/complianceline 
 .
Please note that this e-mail is not secure (encrypted).  If you do not wish to 
continue communication over unencrypted e-mail, please notify the sender of 
this message immediately.  Continuing to send or respond to e-mail after 
receiving this message means you understand and accept this risk and wish to 
continue to communicate over unencrypted e-mail.