Replies: 2 comments 1 reply
-
For the moment, the API of that function is: C3t3 c3t3;
initialize_triangulation_from_labeled_image(c3t3,
domain,
image,
criteria,
static_cast<unsigned char>(0)); Your proposal is probably something like: C3t3 c3t3 = Domain_type::initialize_triangulation_from_labeled_image(
domain,
image,
criteria,
static_cast<unsigned char>(0)); My first remark is that it should not be a static function, if the first parameter is the domain itself. No, let's turn that into a non-static member function: C3t3 c3t3 = domain.initialize_triangulation_from_labeled_image(
image,
criteria,
static_cast<unsigned char>(0)); My next remark is that the C3t3 c3t3 = domain.initialize_triangulation_from_labeled_image<C3t3>(
image,
criteria,
static_cast<unsigned char>(0)); and maybe a better name: C3t3 c3t3 = domain.initialize_c3t3_from_labeled_image<C3t3>(
image,
criteria,
static_cast<unsigned char>(0)); It would be a domain-specific member function template, and an equivalent of the gray-level images domain class. Anyway, it should not be part of PR #7445, that is already too big to be reviewed efficiently, but in another pull-request. |
Beta Was this translation helpful? Give feedback.
-
Actually, C3t3 c3t3 = domain.initialize_c3t3<C3t3>(image, criteria, static_cast<unsigned char>(0)); |
Beta Was this translation helpful? Give feedback.
-
Originally posted by @afabri in #7445 (comment)
Beta Was this translation helpful? Give feedback.
All reactions