From e8bd026dd0137dcfa02f6ebe1c40b6198fae67e0 Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Tue, 19 Apr 2016 12:24:30 +0200 Subject: [PATCH] Fix Image_3 The value outside must be 0. in the trilinear interpolation of indicator functions. --- CGAL_ImageIO/include/CGAL/Image_3.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CGAL_ImageIO/include/CGAL/Image_3.h b/CGAL_ImageIO/include/CGAL/Image_3.h index eb0d6f314fe..d8415879343 100644 --- a/CGAL_ImageIO/include/CGAL/Image_3.h +++ b/CGAL_ImageIO/include/CGAL/Image_3.h @@ -517,7 +517,7 @@ Image_3::labellized_trilinear_interpolation Image_word_type iwt = labels[i]; const double r = trilinear_interpolation( - x, y, z, value_outside, indicator_factory.indicator(iwt)); + x, y, z, 0., indicator_factory.indicator(iwt)); CGAL_assertion(r >= 0.); CGAL_assertion(r <= 1.);