]> Creatis software - clitk.git/blobdiff - registration/clitkGenericVectorInterpolator.h
With ITKv5, change VectorResample and VectorCast Image Filter to Resample and Cast...
[clitk.git] / registration / clitkGenericVectorInterpolator.h
index 73bfa96b6b4360d9b71e7fd140b39b6c061ea732..e6aa7662cf461f00e01eab6ceb6dbbaba5f09c9a 100644 (file)
 #include "clitkImageCommon.h"
 
 //itk include
+#if ( ITK_VERSION_MAJOR < 5 )
 #include "itkVectorNearestNeighborInterpolateImageFunction.h"
 #include "itkVectorLinearInterpolateImageFunction.h"
+#else
+#include "itkNearestNeighborInterpolateImageFunction.h"
+#include "itkLinearInterpolateImageFunction.h"
+#endif
 #include "clitkVectorBSplineInterpolateImageFunction.h"
 #include "clitkVectorBSplineInterpolateImageFunctionWithLUT.h"
 
@@ -56,7 +61,11 @@ namespace clitk
     typedef itk::SmartPointer<Self>            Pointer;
     typedef itk::SmartPointer<const Self>      ConstPointer;
 
+#if ( ITK_VERSION_MAJOR < 5 )
     typedef itk::VectorInterpolateImageFunction<ImageType, TCoordRep> InterpolatorType;
+#else
+    typedef itk::InterpolateImageFunction<ImageType, TCoordRep> InterpolatorType;
+#endif
     typedef typename InterpolatorType::Pointer InterpolatorPointer;   
      
     /** Method for creation through the object factory. */