]> Creatis software - clitk.git/blobdiff - itk/clitkVectorBSplineInterpolateImageFunction.txx
Remove vcl_math calls
[clitk.git] / itk / clitkVectorBSplineInterpolateImageFunction.txx
index 2599b80a0f68bc3dcbf8f8ec3d4aa0a47af913f1..935f257f13d1b5a30ab05bf6180d1a7121b097d8 100644 (file)
@@ -484,12 +484,12 @@ VectorBSplineInterpolateImageFunction<TImageType,TCoordRep,TCoefficientType>
 // compute the interpolation indexes
   for (unsigned int n = 0; n< ImageDimension; n++) {
     if (splineOrder & 1) {   // Use this index calculation for odd splineOrder
-      indx = (long)vcl_floor((float)x[n]) - splineOrder / 2;
+      indx = (long)std::floor((float)x[n]) - splineOrder / 2;
       for (unsigned int k = 0; k <= splineOrder; k++) {
         evaluateIndex[n][k] = indx++;
       }
     } else {                   // Use this index calculation for even splineOrder
-      indx = (long)vcl_floor((float)(x[n] + 0.5)) - splineOrder / 2;
+      indx = (long)std::floor((float)(x[n] + 0.5)) - splineOrder / 2;
       for (unsigned int k = 0; k <= splineOrder; k++) {
         evaluateIndex[n][k] = indx++;
       }