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];
|
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, 0., indicator_factory.indicator(iwt));
|
x, y, z, value_outside, indicator_factory.indicator(iwt));
|
||||||
CGAL_assertion(r >= 0.);
|
|
||||||
CGAL_assertion(r <= 1.);
|
|
||||||
|
|
||||||
if(r > best_value) {
|
if(r > best_value) {
|
||||||
best = iwt;
|
best = iwt;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue