Generate meshes from voxel based images

Hi everybody,

I would like to convert voxel-based images into a finite element mesh and load it into dolfinx. I have found that pygalmesh (a Python frontend of CGAL) allows meshing of such images. However, it seems that there is no way to assign physical tags, i.e. number cells and facets.

Is there any possibility to manipluate the generated mesh file, e.g. with gmsh?
Or do you see another way to do this?

Thank you.

You could consider looking at the first chapters of Mathematical Modeling of the Human Brain: From Magnetic Resonance Images to Finite Element Simulation | SpringerLink

Okay, thanks! I will have a look at it.