cutting meshes

Questions about Anatomist manipulation

Moderators: riviere, denghien

pablob
Posts: 3
Joined: Thu Sep 05, 2013 6:55 pm

cutting meshes

Postby pablob » Thu Sep 26, 2013 8:33 am

Hi all
I would like to make a figure like this http://users.df.uba.ar/pablob/4.png . I can make the circular meshes for the ROIs, my problem is with the patchiness of colors in the mesh, I cannot cut the mesh in appropiate portions, nor paint a single mesh with several colors. Is it possible to get something like this with Anatomist?
thanks a lot
Pablo

User avatar
riviere
Site Admin
Posts: 1358
Joined: Tue Jan 06, 2004 12:21 pm
Location: CEA NeuroSpin, Saint Aubin, France
Contact:

Re: cutting meshes

Postby riviere » Thu Sep 26, 2013 4:54 pm

Hi Pablo,
There are several ways to do "more or less" what you need.
The basis is to label the mesh using a texture (using int labels). You should have a mesh and a "abel texture". Then
- you can display the texture on the mesh in Anatomist, using a colormap for the labels texture. If used directly, you will probably end up with crappy regions borders like this:
Image
You can set the texture properties to "RGB space interpolation" (right click on the texture object in Anatomist, and select "color/texturing"), to get this:
Image
(here it's a FreeSurfer gyri parcellation displayed in Anatomist on an inflated mesh)
You may notice that borders are still a bit fuzzy. This is because OpenGL assigns colors to mesh vertices, and not to triangles (and this is also what we do by labeling vertices, not triangles), and colors need to be interpolated on a triangle which 3 vertices do not have the same color.
- there are also possiblitiies to split the cortex mesh into sub-meshes, each representing one of the different ROIs. But... apparently we do not have written a simple command to do so (or I cannot find it right now...), but there are functions in our libs to do so, which may be used directly from a little python script. Then you may color each mesh independently.

Denis


Return to “Anatomist”

Who is online

Users browsing this forum: No registered users and 1 guest