From c9b04ebc97efe32d0e4bb29f96232201c9ded5ea Mon Sep 17 00:00:00 2001 From: Jane Tournois Date: Thu, 15 Jun 2023 15:03:57 +0200 Subject: [PATCH] apply input image translation to image with weights wrapper --- .../Mesh_3/Image_plus_weights_to_labeled_function_wrapper.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Mesh_3/include/CGAL/Mesh_3/Image_plus_weights_to_labeled_function_wrapper.h b/Mesh_3/include/CGAL/Mesh_3/Image_plus_weights_to_labeled_function_wrapper.h index e1d54932eb6..bb38e8ba3dd 100644 --- a/Mesh_3/include/CGAL/Mesh_3/Image_plus_weights_to_labeled_function_wrapper.h +++ b/Mesh_3/include/CGAL/Mesh_3/Image_plus_weights_to_labeled_function_wrapper.h @@ -116,9 +116,9 @@ public: { return static_cast(transform( r_im_.template labellized_trilinear_interpolation( - CGAL::to_double(p.x()), - CGAL::to_double(p.y()), - CGAL::to_double(p.z()), + CGAL::to_double(p.x() - r_im_.image()->tx), + CGAL::to_double(p.y() - r_im_.image()->ty), + CGAL::to_double(p.z() - r_im_.image()->tz), value_outside, indicator_factory))); }