Sorry about that, here is the whole correspondance:
Hi Doug,
I used mkheadsurf function.
Meryem
Hi freesurfer community,
I am trying to get faces and vertices of the head surface mesh in Matlab. freesurfer_read_surf works perfectly when I extract faces and vertices for the pial surface (from lh.pial), but I get an "unknown magic number in surface file" error when I use the same function for lh.seghead (which I assume is the head surface?).
Any help on what I am doing wrong?
Thanks!
Meryem
Is this what you are running?
[vertex_coords, faces] = read_surf('lh.seghead');
When I run it, it runs fine under 5.3. Is that the version you are running?
doug
On 8/25/14 11:18 AM, Meryem Ayse Yucel wrote:
Sorry about that, here is the whole correspondance:
Hi Doug,
I used mkheadsurf function.
Meryem
Hi freesurfer community,
I am trying to get faces and vertices of the head surface mesh in Matlab. freesurfer_read_surf works perfectly when I extract faces and vertices for the pial surface (from lh.pial), but I get an "unknown magic number in surface file" error when I use the same function for lh.seghead (which I assume is the head surface?).
Any help on what I am doing wrong?
Thanks!
Meryem
Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
freesurfer@nmr.mgh.harvard.edu