]> Creatis software - clitk.git/blobdiff - registration/clitkGenericVectorInterpolator.h
Debug RTStruct conversion with empty struc
[clitk.git] / registration / clitkGenericVectorInterpolator.h
old mode 100755 (executable)
new mode 100644 (file)
index 557d419..e6aa766
@@ -3,7 +3,7 @@
 
   Authors belong to: 
   - University of LYON              http://www.universite-lyon.fr/
-  - Léon Bérard cancer center       http://oncora1.lyon.fnclcc.fr
+  - Léon Bérard cancer center       http://www.centreleonberard.fr
   - CREATIS CNRS laboratory         http://www.creatis.insa-lyon.fr
 
   This software is distributed WITHOUT ANY WARRANTY; without even
 
   - BSD        See included LICENSE.txt file
   - CeCILL-B   http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
-======================================================================-====*/
+===========================================================================**/
 #ifndef __clitkGenericVectorInterpolator_h
 #define __clitkGenericVectorInterpolator_h
 #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. */