CGAL 5.4.1 - 3D Mesh Generation
CGAL::Mesh_3 Namespace Reference

Functions

CGAL::Image_3 generate_label_weights (const CGAL::Image_3 &image, const float &sigma)
 Free function that generates a CGAL::Image_3 of weights associated to each voxel of image, to make the output mesh surfaces smoother. More...
 

Function Documentation

◆ generate_label_weights()

CGAL::Image_3 CGAL::Mesh_3::generate_label_weights ( const CGAL::Image_3 image,
const float &  sigma 
)

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
imagethe input labeled image from which the weights image is computed. Both will then be used to construct a Labeled_mesh_domain_3.
sigmathe standard deviation parameter of the internal Gaussian filter
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.