Bug-fix in Image_3::labellized_trilinear_interpolation

The 'value_outside` was not correctly used.
This commit is contained in:
Laurent Rineau 2016-04-20 15:25:06 +02:00
parent 89129b362f
commit f63605355a
1 changed files with 1 additions and 3 deletions

View File

@ -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;