Kim,
Which version of freesurfer is being used?
An alternative approach is to convert the surface to ascii:
mris_convert surface_file surface_file.asc
where the .asc extension is an output ascii file listing the vertices and faces.
Nick
On Thu, 2007-11-15 at 16:18 +0100, Kim Mouridsen wrote:
Hi,
We have segmented hippocampus using Freesurfer, and want to generate a surface which can be read into matlab.
We use mri_tesselate and mris_smooth. However, the resulting file can not be read into matlab using read_surf. The error we get is
??? Undefined function or variable "vertex_coords".
Error in ==> read_surf at 77 vertex_coords = reshape(vertex_coords, 3, vnum)' ;
It seems the 'magic' number is 16777213, whereas only 16777214 and 16777215 are supported in read_surf.m
How can we read the result of mris_smooth into matlab?
Thanks!
Kim. _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer