]> Creatis software - clitk.git/commitdiff
Replace rint with portable function
authorsrit <srit>
Sat, 26 Mar 2011 21:43:25 +0000 (21:43 +0000)
committersrit <srit>
Sat, 26 Mar 2011 21:43:25 +0000 (21:43 +0000)
itk/itkBSplineInterpolateImageFunctionWithLUT.txx

index b085027ab93bdbbfcac275e65771d4acfd6f0353..01c7b9e1a0ae497a8d6f9a239951779addf29ad4 100644 (file)
@@ -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;