MIRTK / Mapping

Brain mapping module of the Medical Image Registration ToolKit (MIRTK).
https://mirtk.github.io/modules/mapping
Apache License 2.0
0 stars 2 forks source link

Input boundary mesh format #1

Open chenming-wu opened 7 years ago

chenming-wu commented 7 years ago

Hi! Thanks for providing such a good library to process medical images and volumes.

I have a question when I was trying to run the calculate-volume-map executable program, the input mesh should be piecewise linear complex or tetrahedral mesh generated from PLC accordingly. I tried both .off and .obj formats which are pretty common in mesh processing but failed. My question is what format of PLC should I use? Thanks.

schuhschuh commented 7 years ago

Thanks, I use the VTK XML format usually (.vtp). However, the tools should be able to read surface meshes from .off or .obj files. Is the problem indeed of reading the meshes or the actual computation of a volumetric map? The Mapping module is still in a rather experimental stage. Computing harmonic maps worked fine in my tests, but that's a while back.

Can you be more clear what "failed" means? Do you get any error from the program?

If the error is this one, the problem might rather be that your input files don't specify the boundary (surface) map as expected. In this case it might be best to use VTK's file format which makes it easier to manage the additional point data. See also the convert-pointset and copy-pointset-attributes commands for preparing your input. Also, if you don't have boundary maps yet, maybe calculate-surface-map can help.