]> Creatis software - clitk.git/blobdiff - registration/clitkConvertBLUTCoeffsToVFFilter.h
Remove ITK3 and ITK4.2 tests and dependencies
[clitk.git] / registration / clitkConvertBLUTCoeffsToVFFilter.h
index 3cd1e676b0acdf9d23c37f194fd09f5363cbc227..40eb129d084e3c8bec1f0dabfcd8e9681c5f9477 100644 (file)
@@ -8,9 +8,11 @@
 #include "clitkBSplineDeformableTransform.h"
 #include "itkBSplineDeformableTransform.h"
 #if ITK_VERSION_MAJOR >= 4
-#include "itkTransformToDisplacementFieldSource.h"
-#else
-#include "itkTransformToDeformationFieldSource.h"
+#  if ITK_VERSION_MINOR < 6
+#    include "itkTransformToDisplacementFieldSource.h"
+#  else
+#    include "itkTransformToDisplacementFieldFilter.h"
+#  endif
 #endif
 
 namespace clitk 
@@ -46,9 +48,11 @@ namespace clitk
     typedef itk::Transform< double, TDVFType::ImageDimension, TDVFType::ImageDimension> GenericTransformType;
     
 #if ITK_VERSION_MAJOR >= 4
+#  if ITK_VERSION_MINOR < 6
     typedef itk::TransformToDisplacementFieldSource<OutputImageType, double> ConvertorType;
-#else
-    typedef itk::TransformToDeformationFieldSource<OutputImageType, double> ConvertorType;
+#  else
+    typedef itk::TransformToDisplacementFieldFilter<OutputImageType, double> ConvertorType;
+#  endif
 #endif
 
     itkNewMacro(Self);
@@ -90,4 +94,4 @@ namespace clitk
 
 #include "clitkConvertBLUTCoeffsToVFFilter.txx"
 
-#endif // clitkConvertBLUTCoeffsToVFFilter_h
\ No newline at end of file
+#endif // clitkConvertBLUTCoeffsToVFFilter_h