Hi,
Does anyone know of a script that takes a surface patch, flattens it and then gives you the transformation matrix for each verrtex that allows you to put it back into the initial form? The purpose is to do 2D plane geometric operations on the flattened surface and then re-transform the output back onto the original surf configuration. I am working on it in Matlab, so Matlab code would be best. But it could also use FS surf files as input and output. Any suggestions are greatly appreciated!
Best, Thomas
Hi Thomas,
there's no transformation matrix - you just look up the vertex by it's index on whatever surface you are interested in (e.g. ?h.white).
cheers, Bruce
On Mon, 17 Aug 2009, oxro0@yahoo.com wrote:
Hi,
Does anyone know of a script that takes a surface patch, flattens it and then gives you the transformation matrix for each verrtex that allows you to put it back into the initial form? The purpose is to do 2D plane geometric operations on the flattened surface and then re-transform the output back onto the original surf configuration. I am working on it in Matlab, so Matlab code would be best. But it could also use FS surf files as input and output. Any suggestions are greatly appreciated!
Best, Thomas
Thomas,
I'm not sure about how to get a transform matrix, but the vertex numbers of a surface patch (flattened or not) match those of the originating surfaces (orig, white, pial and inflated), so the transform matrix may not be necessary for what you want to do.
mris_flatten is used to flatten a patch.
Nick
On Mon, 2009-08-17 at 12:02 -0700, oxro0@yahoo.com wrote:
Hi,
Does anyone know of a script that takes a surface patch, flattens it and then gives you the transformation matrix for each verrtex that allows you to put it back into the initial form? The purpose is to do 2D plane geometric operations on the flattened surface and then re-transform the output back onto the original surf configuration. I am working on it in Matlab, so Matlab code would be best. But it could also use FS surf files as input and output. Any suggestions are greatly appreciated!
Best, Thomas
Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
freesurfer@nmr.mgh.harvard.edu