X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=registration%2FclitkGenericVectorInterpolator.h;h=e6aa7662cf461f00e01eab6ceb6dbbaba5f09c9a;hb=998ca9ca987553dc71578e5584e881f6bd537d91;hp=73bfa96b6b4360d9b71e7fd140b39b6c061ea732;hpb=a9a144f59b821751d19a41bd7b8e5bc6d6ff7a01;p=clitk.git diff --git a/registration/clitkGenericVectorInterpolator.h b/registration/clitkGenericVectorInterpolator.h index 73bfa96..e6aa766 100644 --- a/registration/clitkGenericVectorInterpolator.h +++ b/registration/clitkGenericVectorInterpolator.h @@ -20,8 +20,13 @@ #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 Pointer; typedef itk::SmartPointer ConstPointer; +#if ( ITK_VERSION_MAJOR < 5 ) typedef itk::VectorInterpolateImageFunction InterpolatorType; +#else + typedef itk::InterpolateImageFunction InterpolatorType; +#endif typedef typename InterpolatorType::Pointer InterpolatorPointer; /** Method for creation through the object factory. */