X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=itk%2FclitkVectorBSplineInterpolateImageFunction.txx;h=935f257f13d1b5a30ab05bf6180d1a7121b097d8;hb=7d4e77191e55f668f316ba3ddf0fddb63e59bd25;hp=2599b80a0f68bc3dcbf8f8ec3d4aa0a47af913f1;hpb=765020625fbc092d283e221e36c83e60a1844cb7;p=clitk.git diff --git a/itk/clitkVectorBSplineInterpolateImageFunction.txx b/itk/clitkVectorBSplineInterpolateImageFunction.txx index 2599b80..935f257 100644 --- a/itk/clitkVectorBSplineInterpolateImageFunction.txx +++ b/itk/clitkVectorBSplineInterpolateImageFunction.txx @@ -484,12 +484,12 @@ VectorBSplineInterpolateImageFunction // 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++; }