Hi everyone,
I would like a 2D representation, hence a flattened version, of a surface in matlab, either the indices (a 2D map of 3D coordinates) or the actual values. Is this at all possible and if so, how? I see that read_surf gives vertex-indices back, but there is no 2D structure in there and MRIread is made for 3D-data only it seems.
This post (which has similar aims as I have) http://groups.google.com/group/mvpa-toolbox/browse_thread/thread/dff9ba10081... suggests it isn't possible at all. And that it has serious disadvantages (the flattening process creating deformations of its own, which makes sense). That would be a pity. Then the best way would be to use the masked version of the 3D data: for that I can use the vertices given by read_surf, or is there an alternative/easier way?
Hope it is possible, thanks a lot in advance,
kind regards,
Frank
Hi Frank,
read_patch_asc.m can be used to load in the ascii-converted patch files. You can then use surf.vertices to get vertex indices that you can use to index into the white/pial surface loaded with read_surf.m to get x,y,z coords.
cheers, Bruce
On Wed, 21 Apr 2010, f.leone@donders.ru.nl wrote:
Hi everyone,
I would like a 2D representation, hence a flattened version, of a surface
in matlab, either the indices (a 2D map of 3D coordinates) or the actual values. Is this at all possible and if so, how? I see that read_surf gives vertex-indices back, but there is no 2D structure in there and MRIread is made for 3D-data only it seems.
This post (which has similar aims as I have) http://groups.google.com/group/mvpa-toolbox/browse_thread/thread/dff9ba10081... suggests it isn't possible at all. And that it has serious disadvantages (the flattening process creating deformations of its own, which makes sense). That would be a pity. Then the best way would be to use the masked version of the 3D data: for that I can use the vertices given by read_surf, or is there an alternative/easier way?
Hope it is possible, thanks a lot in advance,
kind regards, Frank
freesurfer@nmr.mgh.harvard.edu