]> Creatis software - clitk.git/blobdiff - registration/clitkMatrixTransformToVFGenericFilter.txx
Debug RTStruct conversion with empty struc
[clitk.git] / registration / clitkMatrixTransformToVFGenericFilter.txx
index a1241b5358cc06a0ab63065be57a2f41134c0bfe..8bc8877cf9757239091cf126382cdfcc2a99397a 100644 (file)
@@ -78,14 +78,10 @@ namespace clitk
     typedef itk::Image<Displacement, Dimension> OutputImageType;
     
     // Filter
-#if ITK_VERSION_MAJOR >= 4
-#  if ITK_VERSION_MINOR < 6
+#if (ITK_VERSION_MAJOR == 4) && (ITK_VERSION_MINOR < 6)
     typedef itk::TransformToDisplacementFieldSource<OutputImageType, double> ConvertorType;
-#  else
-    typedef itk::TransformToDisplacementFieldFilter<OutputImageType, double> ConvertorType;
-#  endif
 #else
-    typedef itk::TransformToDeformationFieldSource<OutputImageType, double> ConvertorType;
+    typedef itk::TransformToDisplacementFieldFilter<OutputImageType, double> ConvertorType;
 #endif
 
     typename   ConvertorType::Pointer filter= ConvertorType::New();