Silviu -
You simply need to create a mat file that contains two variables "vert"
and "face", where vert is an Nx3 list of xyz float coordinates of the N
vertices, and face is a ~2Nx3 list of integers coding which vertices are
connected (as in the standard *.tri format). Then select this mat file
when choosing a template mesh. (There is also an additional variable
"norm" coding the orientation of the local normal at each vertex, but
spm can calculate this for you if you want).
Rik
Silviu Podariu wrote:
> Hi,
>
> I was wondering if anybody tried and managed to replace the three
> meshes SPM produces from the sMRI (which are not very faithful to the
> source in our case) with meshes produces by some other package, like
> Free Surfer.
>
> I hoped I would just have to replace the D.inv{1}.mesh.tess_ctx.face/vert
> with different arrays for the sets of vertices/triangles and save, but
> it looks like D is not the real data structure that gets saved (hence
> not the one I should try to modify). Any hints?
>
> Thank you,
>
> Silviu Podariu
> UNMC,
> Omaha, NE
>
> ------------------------------------------------------------------------
> Never miss a thing. Make Yahoo your homepage.
> <http://us.rd.yahoo.com/evt=51438/*http://www.yahoo.com/r/hs>
--
----------------------------------------
Dr Richard Henson
MRC Cognition & Brain Sciences Unit
15 Chaucer Road
Cambridge
CB2 7EF, UK
Tel: +44 (0)1223 355 294 x522
Fax: +44 (0)1223 359 062
http://www.mrc-cbu.cam.ac.uk/~rik.henson
----------------------------------------
|