Hi Bruce,

I tried read_surf. There is a line in read_surf.m "magic = 
freesurfer_fread3("name of the surface_file")" The number returned into magic 
does not match any of the predefined numbers for quad or tri type of file and 
hence it throws an error for vertices because vertices get assigned inside the 
if loop that checks for one of the predefined magic number. Any help to solve 
this will be very helpful.

Thank you,

Sincerely,

Virendra

________________________________________
From: freesurfer-boun...@nmr.mgh.harvard.edu 
[freesurfer-boun...@nmr.mgh.harvard.edu] on behalf of Bruce Fischl 
[fis...@nmr.mgh.harvard.edu]
Sent: Tuesday, April 29, 2014 8:52 PM
To: Freesurfer support list
Subject: Re: [Freesurfer] reading ?h.smoothwm.nofix

Hi Virendra
Is that our function? I haven't heard of it. Have you tris read_surf?
Bruce

> On Apr 29, 2014, at 4:16 PM, Virendra Mishra 
> <virendra.mis...@utsouthwestern.edu> wrote:
>
> Hello Bruce,
>
> Thank you for the quick reply. Essentially, I want to use 
> find_corresponding_center_FSformat matlab command with ?h.smoothwm.nofix 
> surface file which I believe calls freesurfer_fread3() file and throws an 
> error "Unknown magic number in surface file ?h.smoothwm.nofix. How do I get 
> that matlab command to run with ?h.smoothwm.nofix surface file?
>
> Thank you for your help.
>
> Sincerely,
>
> Virendra.
>
> -----Original Message-----
> From: freesurfer-boun...@nmr.mgh.harvard.edu 
> [mailto:freesurfer-boun...@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.



_______________________________________________
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer

Reply via email to