Hi Jihoon,
You can just use read_surf.m, e.g.
[vertices, faces] = read_surf('lh.sphere.reg');
The vertices is a N x 3 matrix. Row 1 corresponds to vertex 1, etc.
--Thomas
On Wed, Mar 14, 2012 at 12:23 PM, Ji hoon Oh ojihoon@gmail.com wrote:
Dear FreeSurfer,
Hi,
I have a label with vertex index, RAS and overlay values, and want to add spherical coordinates to them as presented in tksurfer.
I found following archives that are related to this question, but I couldn't find any vertex index (number) information in a sphere.reg file. (http://www.mail-archive.com/freesurfer@nmr.mgh.harvard.edu/msg00627.html)
I converted ?h.sphere.reg file into ?h.sphere.reg.asc using mris_convert command, and imported it to MATLAB using read_asc.m file (without face data). They had [x,y,z] coordinates in columns, but did not provide vertex index information.
I wonder if there is a way to read the vertex index from a sphere.reg file, or there are other methods that read both vertex index and spherical coordinates.
Thank you, Jihoon Oh
--
Jihoon Oh, M.D. Ph.D. candidate, Bio and Brain Engineering Korea Advanced Institute for Science and Technology (KAIST) E-mail: ojihoon@gmail.com
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.