]> Creatis software - clitk.git/commitdiff
itkv4 migration: Rename itkBSplineDeformableTransform to itkBSplineTransform
authorVivien Delmon <vivien.delmon@creatis.insa-lyon.fr>
Tue, 9 Aug 2011 08:37:52 +0000 (10:37 +0200)
committerVivien Delmon <vivien.delmon@creatis.insa-lyon.fr>
Tue, 9 Aug 2011 08:37:52 +0000 (10:37 +0200)
registration/itkMattesMutualInformationImageToImageMetricFor3DBLUTFFD.h
registration/itkMattesMutualInformationImageToImageMetricFor3DBLUTFFD.txx

index 091e36cb57f5eac7a56e58a381475806e97a88e2..a31fe349856f97799509af9fe6ce4e328012d5d1 100644 (file)
 #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
@@ -471,10 +475,17 @@ private:
   /**
    * 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
index f13fe2aa81b9d950cdb80795f5f0d640d92ae947..852583b8373c52a804e9e007b329bf07edd6c645 100644 (file)
 #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
 {