From: srit Date: Sat, 26 Mar 2011 22:55:10 +0000 (+0000) Subject: Another lrint X-Git-Tag: v1.2.0~106 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=6512df02372cfb3507bf1799115511a68ab5036e;p=clitk.git Another lrint --- diff --git a/itk/itkBSplineInterpolateImageFunctionWithLUT.txx b/itk/itkBSplineInterpolateImageFunctionWithLUT.txx index 01c7b9e..35c1664 100644 --- a/itk/itkBSplineInterpolateImageFunctionWithLUT.txx +++ b/itk/itkBSplineInterpolateImageFunctionWithLUT.txx @@ -190,7 +190,7 @@ namespace itk // Compute index in precomputed weights table TCoefficientType t2 = mSamplingFactors[l]*t1; - index[l] = (IndexValueType)lrint(t2); + index[l] = (IndexValueType)Math::Round(t2); // For even order : test if too close to 0.5 (but lower). In this // case : take the next coefficient