[Freesurfer] fsfast read_surf bug

2013-07-14 Thread Joseph Dien
I've been trying to use the read_surf.m Matlab function included in the Matlab 
folder of 5.3.0 on a Mac under Matlab 2013a.  

 [vertex_coords, faces] = read_surf('fmcpr.sm5.fsaverage.lh.nii');
Undefined function or variable vertex_coords.

Error in read_surf (line 77)
vertex_coords = reshape(vertex_coords, 3, vnum)' ;

It looks as though the reason is that the magic number evaluates as:

6029568

which does not match either of the numbers it is looking for (which denote 
triangle and quad files).

Does that mean that current surface files have a different format and this 
function needs to be updated accordingly?

Anyway, is there some way I can load surface files into Matlab?

I looked through the fsfast Matlab functions but it wasn't clear to me if one 
of them would do.

The best candidate seemed to be fast_read_curv.m but it yielded too many 
numbers so I'm thinking a curvature file is something different.

Thanks!

Joe



Joseph Dien,
Senior Research Scientist
University of Maryland 

E-mail: jdie...@mac.com
Phone: 202-297-8117
http://joedien.com//












___
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.


Re: [Freesurfer] fsfast read_surf bug

2013-07-14 Thread Douglas Greve
Hi Joe, that is an overlay for a surface, not a surface itself. It just 
has a value for each vertex. A surface has geometry and neighborhood 
info. Try using MRIread.m instead.

doug


On 7/14/13 3:57 PM, Joseph Dien wrote:
I've been trying to use the read_surf.m Matlab function included in 
the Matlab folder of 5.3.0 on a Mac under Matlab 2013a.


 [vertex_coords, faces] = read_surf('fmcpr.sm5.fsaverage.lh.nii');
Undefined function or variable vertex_coords.

Error in read_surf (line 77)
vertex_coords = reshape(vertex_coords, 3, vnum)' ;

It looks as though the reason is that the magic number evaluates as:

6029568

which does not match either of the numbers it is looking for (which 
denote triangle and quad files).


Does that mean that current surface files have a different format and 
this function needs to be updated accordingly?


Anyway, is there some way I can load surface files into Matlab?

I looked through the fsfast Matlab functions but it wasn't clear to me 
if one of them would do.


The best candidate seemed to be fast_read_curv.m but it yielded too 
many numbers so I'm thinking a curvature file is something different.


Thanks!

Joe



Joseph Dien,
Senior Research Scientist
University of Maryland

E-mail: jdie...@mac.com mailto:jdie...@mac.com
Phone: 202-297-8117
http://joedien.com//














___
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.