]> Creatis software - clitk.git/blobdiff - itk/itkBSplineInterpolateImageFunctionWithLUT.txx
Romulo
[clitk.git] / itk / itkBSplineInterpolateImageFunctionWithLUT.txx
index 01c7b9e1a0ae497a8d6f9a239951779addf29ad4..35c1664f6ef82e37fcd7963a8844be75e9df5631 100644 (file)
@@ -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