#include "itkBSplineDerivativeKernelFunction.h"
#include "itkCentralDifferenceImageFunction.h"
#include "itkBSplineInterpolateImageFunction.h"
-#include "itkBSplineDeformableTransform.h"
+#if ITK_VERSION_MAJOR >= 4
+ #include "itkBSplineTransform.h"
+#else
+ #include "itkBSplineDeformableTransform.h"
+#endif
#include "itkArray2D.h"
namespace itk
/**
* Typedefs for the BSplineDeformableTransform.
*/
+#if ITK_VERSION_MAJOR >= 4
+ typedef BSplineTransform<
+ CoordinateRepresentationType,
+ ::itk::GetImageDimension<FixedImageType>::ImageDimension,
+ DeformationSplineOrder> BSplineTransformType;
+#else
typedef BSplineDeformableTransform<
CoordinateRepresentationType,
::itk::GetImageDimension<FixedImageType>::ImageDimension,
DeformationSplineOrder> BSplineTransformType;
+#endif
typedef typename BSplineTransformType::WeightsType
BSplineTransformWeightsType;
typedef typename BSplineTransformType::ParameterIndexArrayType
#include "itkImageRegionIterator.h"
#include "itkImageIterator.h"
#include "vnl/vnl_math.h"
-#include "itkBSplineDeformableTransform.h"
+#if ITK_VERSION_MAJOR >= 4
+ #include "itkBSplineTransform.h"
+#else
+ #include "itkBSplineDeformableTransform.h"
+#endif
namespace itk
{