From 852490c2f4bccecf8a255ee35dfae5b5e02bb8dc Mon Sep 17 00:00:00 2001 From: srit Date: Sat, 26 Mar 2011 21:43:25 +0000 Subject: [PATCH] Replace rint with portable function --- itk/itkBSplineInterpolateImageFunctionWithLUT.txx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/itk/itkBSplineInterpolateImageFunctionWithLUT.txx b/itk/itkBSplineInterpolateImageFunctionWithLUT.txx index b085027..01c7b9e 100644 --- a/itk/itkBSplineInterpolateImageFunctionWithLUT.txx +++ b/itk/itkBSplineInterpolateImageFunctionWithLUT.txx @@ -240,7 +240,7 @@ namespace itk evaluateIndex[l] = indx; } else { // Use this index calculation for even splineOrder - if (mSplineOrders[l] == 0) evaluateIndex[l] = (long)rint(x[l]); + if (mSplineOrders[l] == 0) evaluateIndex[l] = Math::Round(x[l]); else { indx = (long)vcl_floor((x[l]+ 0.5)) - mSplineOrders[l] / 2; //this->m_SplineOrder / 2; evaluateIndex[l] = indx; -- 2.47.1