]> Creatis software - clitk.git/blobdiff - registration/clitkMatrixTransformToVFGenericFilter.txx
Debug RTStruct conversion with empty struc
[clitk.git] / registration / clitkMatrixTransformToVFGenericFilter.txx
index 8a36a882b91017a7c4d1e69cc1f34cd73cdcedd7..8bc8877cf9757239091cf126382cdfcc2a99397a 100644 (file)
@@ -78,12 +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
+#else
     typedef itk::TransformToDisplacementFieldFilter<OutputImageType, double> ConvertorType;
-#  endif
 #endif
 
     typename   ConvertorType::Pointer filter= ConvertorType::New();