Hi again,
I used mris_convert *.asc my_name and it worked!
Is this correct?
Thank you,
Virendra
-----Original Message----- From: freesurfer-bounces@nmr.mgh.harvard.edu [mailto:freesurfer-bounces@nmr.mgh.harvard.edu] On Behalf Of Virendra Mishra Sent: Wednesday, April 30, 2014 3:40 PM To: Freesurfer support list Subject: Re: [Freesurfer] reading ?h.smoothwm.nofix
Hi Bruce,
Thanks for the code. I am able to read the file now. But I would rather want to read it as a triangular one rather than a quadrangular one as the output of this code is an input to another code that expects a triangular case. I would be very thankful if you could help me convert the quadrangular one to the triangular one. Although, if I convert to .asc, it does convert to the format I want. May I know how do I do that? Or modify read_surf so that it converts the quadrangular one to triangular and do the job for me. OR possibly convert the .asc file back to the triangular mesh binary format?
Thank you for your time.
Sincerely,
Virendra.
-----Original Message----- From: freesurfer-bounces@nmr.mgh.harvard.edu [mailto:freesurfer-bounces@nmr.mgh.harvard.edu] On Behalf Of Bruce Fischl Sent: Wednesday, April 30, 2014 7:59 AM To: Freesurfer support list Subject: Re: [Freesurfer] reading ?h.smoothwm.nofix
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
_______________________________________________ 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.