apply input image translation to image with weights wrapper

This commit is contained in:
Jane Tournois 2023-06-15 15:03:57 +02:00
parent c1ba814e4a
commit c9b04ebc97
1 changed files with 3 additions and 3 deletions

View File

@ -116,9 +116,9 @@ public:
{ {
return static_cast<return_type>(transform( return static_cast<return_type>(transform(
r_im_.template labellized_trilinear_interpolation<Image_word_type>( r_im_.template labellized_trilinear_interpolation<Image_word_type>(
CGAL::to_double(p.x()), CGAL::to_double(p.x() - r_im_.image()->tx),
CGAL::to_double(p.y()), CGAL::to_double(p.y() - r_im_.image()->ty),
CGAL::to_double(p.z()), CGAL::to_double(p.z() - r_im_.image()->tz),
value_outside, value_outside,
indicator_factory))); indicator_factory)));
} }