Hello everybody,
I would like to write a surface in freesurfer format from a matlab triangular mesh (e.g. list of 67120 vertices associated with 134236 faces). To read the freesurfer surfaces, I usually use the very useful bioelectromagnetism toolbox by Darren Weber, but I am not able to find out why the freesurfer_write_surface function (attached to this mail) do not work with my mesh. It indeed seems to write a surface of adequate size (2.3MB), but when I try to visualize it, tkmedit respond:
"(null): vertex 0 x coordinate 282617032931096509022208.000000 ! "
Does someone has any hints on that or an available matlab script to write a freesurfer surface?
Many thanks for your help,
Marie Schaer