CGAL 6.0.1 - 3D Mesh Generation
Loading...
Searching...
No Matches
CGAL::Mesh_3::Detect_features_on_image_bbox Struct Reference

#include <CGAL/Mesh_3/Detect_features_on_image_bbox.h>

Definition

Functor for feature detection in labeled images.

Examples
Mesh_3/mesh_3D_image_with_custom_initialization.cpp, and Mesh_3/mesh_3D_image_with_features.cpp.

Public Member Functions

template<typename Point >
std::vector< std::vector< Point > > operator() (const CGAL::Image_3 &image) const
 detects and constructs the polylines that lie at the intersection of two or more subdomains and the bounding box of the input labeled image.
 
template<typename Point >
std::vector< std::vector< Point > > operator() (const CGAL::Image_3 &image, CGAL::Image_3 &weights) const
 Similar to the above function, but modifies weights to set the voxels that are part of a polyline feature to 0.
 

Member Function Documentation

◆ operator()()

template<typename Point >
std::vector< std::vector< Point > > CGAL::Mesh_3::Detect_features_on_image_bbox::operator() ( const CGAL::Image_3 image) const

detects and constructs the polylines that lie at the intersection of two or more subdomains and the bounding box of the input labeled image.

Each subdomain inside the bounding box of the input labeled image is defined as the set of voxels with the same value. The outside of the bounding box of the image is considered as a subdomain with voxel value value_outside (see create_labeled_image_mesh_domain() parameters description). Hence, this function computes intersections of "internal" subdomains with the image bounding box.

Template Parameters
Pointclass model of Kernel::Point_3. The point type must match the triangulation point type.
Parameters
imagethe input image
Returns
a std::vector<std::vector<Point>> containing the constructed polylines for later feature protection.