Re: [Freesurfer] Feature request (adding origin info to surface files)

2012-11-11 Thread Nick Schmansky
Luke, attached is a modified read_surf.m which reads the stuff written after the vertex and face data normally found in the surface binary-formatted file. this was reverse-engineered from the source files 'mrisurf.c' (function MRISwriteTriangularSurface) and 'transform.c' (function writeVolGeom).

Re: [Freesurfer] Feature request (adding origin info to surface files)

2012-11-08 Thread Luke Bloy
Thanks for the reply Nick, Yes mris_info does return information I would need. volume geometry: extent : (256, 256, 256) voxel : ( 1., 1., 1.) x_(ras) : (-1., 0., 0.) y_(ras) : ( 0., 0., -1.) z_(ras) : ( 0., 1., 0.) c_(ras) : ( 5.8612, -8.

Re: [Freesurfer] Feature request (adding origin info to surface files)

2012-11-07 Thread Nick Schmansky
Luke, A quick answer (w/o looking into it too much): does: mris_info rh.pial give you the info you need? what i'm not sure of is whether everything you see in that output is available in the structure that the matlab surface reader loads. Nick On Wed, 2012-11-07 at 09:17 -0500, Luke Bloy wr

[Freesurfer] Feature request (adding origin info to surface files)

2012-11-07 Thread Luke Bloy
Hi all, I'm not sure where the best place to make this request is. so I thought I'll put this here. I often use freesurfer generated surfaces and images in other software packages (Slicer, Matlab etc) for various things. The MGZ files include the origin in the file headers, meaning that sof