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
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@nmr.mgh.harvard.edu