mirror of https://github.com/CGAL/cgal
Fix Image_3
The value outside must be 0. in the trilinear interpolation of indicator functions.
This commit is contained in:
parent
81e53df5f1
commit
e8bd026dd0
|
|
@ -517,7 +517,7 @@ Image_3::labellized_trilinear_interpolation
|
||||||
Image_word_type iwt = labels[i];
|
Image_word_type iwt = labels[i];
|
||||||
const double r =
|
const double r =
|
||||||
trilinear_interpolation<Image_word_type,double,Coord_type>(
|
trilinear_interpolation<Image_word_type,double,Coord_type>(
|
||||||
x, y, z, value_outside, indicator_factory.indicator(iwt));
|
x, y, z, 0., indicator_factory.indicator(iwt));
|
||||||
CGAL_assertion(r >= 0.);
|
CGAL_assertion(r >= 0.);
|
||||||
CGAL_assertion(r <= 1.);
|
CGAL_assertion(r <= 1.);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue