From fd8481459a7645c5dd07b7a96a88d88cdf23ebb6 Mon Sep 17 00:00:00 2001 From: Julien Michel <julien.michel@c-s.fr> Date: Tue, 2 Dec 2008 10:22:43 +0100 Subject: [PATCH] BUG: Spacing should be absolute --- Code/DisparityMap/otbStreamingWarpImageFilter.txx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Code/DisparityMap/otbStreamingWarpImageFilter.txx b/Code/DisparityMap/otbStreamingWarpImageFilter.txx index 9ce17120e2..8018205eec 100644 --- a/Code/DisparityMap/otbStreamingWarpImageFilter.txx +++ b/Code/DisparityMap/otbStreamingWarpImageFilter.txx @@ -65,7 +65,7 @@ StreamingWarpImageFilter<TInputImage,TOutputImage,TDeformationField> // Compute the margin due to the maximum deformation value and interpolator radius for(unsigned int i = 0; i<InputImageType::ImageDimension;++i) { - radius[i]=interpolatorRadius + static_cast<unsigned int>(vcl_ceil(m_MaximumDeformation[i]/spacing[i])); + radius[i]= interpolatorRadius + static_cast<unsigned int>(vcl_ceil(m_MaximumDeformation[i]/vcl_abs(spacing[i]))); } otbMsgDevMacro(<<"WarpImageFilter: MaximumDeformation: "<<m_MaximumDeformation<<", interpolator radius: "<<interpolatorRadius<<", total radius: "<<radius); -- GitLab