Hi
I 'd like to generate a file.tri using AimsMesh and i can't manage.
when I write : AimsMesh --tri -i ... -o ...
Anatomist doesn't understand the "--tri" option.
Thank you, for helping me
Tristan
how "AimsMesh" can generate files.tri?
- riviere
- Site Admin
- Posts: 1361
- Joined: Tue Jan 06, 2004 12:21 pm
- Location: CEA NeuroSpin, Saint Aubin, France
- Contact:
Hi Tristan,
Well, I think the doc of AimsMesh is outdated... I'll fix it. The --tri option certainly doesn't exist anymore (I haven't checked yet) because it's not needed anymore, you just have to specify .tri extension (rather than .mesh) to the output file argument:
However the .tri format is rather old and incomplete and we don't use it anymore here. The .mesh format has both a binary and an ascii variant and is documented on the web site: http://brainvisa.info/doc/formats/mesh.pdf and http://brainvisa.info/doc/html/en/index.html
Denis
Well, I think the doc of AimsMesh is outdated... I'll fix it. The --tri option certainly doesn't exist anymore (I haven't checked yet) because it's not needed anymore, you just have to specify .tri extension (rather than .mesh) to the output file argument:
Code: Select all
AimsMesh -i toto.ima -o toto.tri
Denis
- riviere
- Site Admin
- Posts: 1361
- Joined: Tue Jan 06, 2004 12:21 pm
- Location: CEA NeuroSpin, Saint Aubin, France
- Contact:
Oh yes you're right, AimsMesh is a low-level command that generates multiple mesh files (one for each interface of the objects to mesh) and generates file names with numbers without bothering about the extension. This should be fixed anyway.
Well, right now you have three options:
- use AimsMeshBrain instead: this command meshes only one interafce and is more suitable if you know you have one object in a binary image (with one connected component), it makes smooth meshes (decimated + smoothed) and can write .mes or .tri format
- use AimsMesh as you did, and convert the output mesh to .tri format afterwards using AimsFileConvert:
- read the .mesh from Matlab, and you're quite lucky because there are matlab routines in brainvisa (thanks to Guillaume Flandin and Denis Schwartz): look in <SHFJ_pack>/brainvisa/matlab/mesh, there are matlab functions to read, write and plot .mesh files...
Denis
Well, right now you have three options:
- use AimsMeshBrain instead: this command meshes only one interafce and is more suitable if you know you have one object in a binary image (with one connected component), it makes smooth meshes (decimated + smoothed) and can write .mes or .tri format
- use AimsMesh as you did, and convert the output mesh to .tri format afterwards using AimsFileConvert:
Code: Select all
AimsFileConvert toto.mesh toto.tri
Denis