mirror of https://github.com/CGAL/cgal
Bug-fix in Image_3::labellized_trilinear_interpolation
The 'value_outside` was not correctly used.
This commit is contained in:
parent
89129b362f
commit
f63605355a
|
|
@ -517,9 +517,7 @@ Image_3::labellized_trilinear_interpolation
|
|||
Image_word_type iwt = labels[i];
|
||||
const double r =
|
||||
trilinear_interpolation<Image_word_type,double,Coord_type>(
|
||||
x, y, z, 0., indicator_factory.indicator(iwt));
|
||||
CGAL_assertion(r >= 0.);
|
||||
CGAL_assertion(r <= 1.);
|
||||
x, y, z, value_outside, indicator_factory.indicator(iwt));
|
||||
|
||||
if(r > best_value) {
|
||||
best = iwt;
|
||||
|
|
|
|||
Loading…
Reference in New Issue