Free function that generates a CGAL::Image_3
of weights associated to each voxel of image
, to make the output mesh surfaces smoother.
The weights image is generated using the algorithm described by Stalling et al in [17]. The Insight toolkit is needed to compile this function.
- Parameters
-
image | the input labeled image from which the weights image is computed. Both will then be used to construct a Labeled_mesh_domain_3 . |
sigma | the standard deviation parameter of the internal Gaussian filter, measured in real-world distances. The size of a voxel (e.g. shortest length or longest length) usually is a good value for this parameter. Note that if sigma is too small, the "stair-effect" of meshing from a voxel image can appear. On the other side, if sigma is too large, thin volumes (basically one voxel thick) may be lost in the meshing process because the computed weights are too blurry. |
- Returns
- a
CGAL::Image_3
of weights used to build a quality Labeled_mesh_domain_3
, with the same dimensions as image
- Examples:
- Mesh_3/mesh_3D_weighted_image.cpp.