Hi Virendra
try the attached m-file. The problem was that before topology correction the mess is a quadrangular one, which wasn't supported by read_surf. I've fixed this, but note that the behavior of read_surf.m is a bit different than our c code, which will internally split each quadrangle into a pair of triangles so that the mesh is triangular.
Another way you could have gone would be to run mris_convert to change it to an ascii file, but hopefully the read_surf.m that I have attached will work as well.
cheers Bruce
On Tue, 29 Apr 2014, Virendra Mishra wrote:
Hi again!
I tried read_surf() with ?h.smoothwm.nofix surface file and it throws an error..essentially still to do with magic number. Any help is greatly appreciated.
Thank you.
Sincerely,
Virendra.
-----Original Message----- From: freesurfer-bounces@nmr.mgh.harvard.edu [mailto:freesurfer-bounces@nmr.mgh.harvard.edu] On Behalf Of Bruce Fischl Sent: Tuesday, April 29, 2014 3:11 PM To: Freesurfer support list Subject: Re: [Freesurfer] reading ?h.smoothwm.nofix
Hi Virendra
I think you can use read_surf.m for any of the binary (not named *.asc) surfaces.
cheers Bruce
On Tue, 29 Apr 2014, Virendra Mishra wrote:
Hello all,
Is there a way to read ?h.smoothwm.nofix using freesurfer_fread3() command in matlab? The question that I want to ask really is ?h.smoothwm.nofix should essentially have the same file format as ?h.pial (but I may be wrong) because ?h.*.pial.asc and ?h.*.nofix.asc both have vertices and faces information and I can read ?h.pial using freesurfer_fread3() command. Can anybody help me to read the ?h.smoothwm.nofix file using freesurfer_fread3() command?
Thank you for any help.
Sincerely,
Virendra.
UT Southwestern Medical Center The future of medicine, today.
Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer