]> Creatis software - clitk.git/commitdiff
itkv4 migration: Rename DifferenceImageFilter to ComparisonImageFilter
authorVivien Delmon <vivien.delmon@creatis.insa-lyon.fr>
Tue, 9 Aug 2011 08:41:41 +0000 (10:41 +0200)
committerVivien Delmon <vivien.delmon@creatis.insa-lyon.fr>
Tue, 9 Aug 2011 08:41:41 +0000 (10:41 +0200)
itk/clitkReconstructThroughDilationImageFilter.h
itk/clitkReconstructThroughDilationImageFilter.txx

index 1c2f6a3a76eb601964a73c5b0f2e4846493c4e78..32d31fe51075bf235a8256d9d8066f38d7bf509a 100644 (file)
 #include "itkConnectedComponentImageFilter.h"
 #include "itkStatisticsImageFilter.h"
 #include "itkCastImageFilter.h"
-#include "itkDifferenceImageFilter.h"
+#if ITK_VERSION_MAJOR >= 4
+  #include "itkTestingComparisonImageFilter.h"
+#else
+  #include "itkDifferenceImageFilter.h"
+#endif
 #include "itkThresholdImageFilter.h"
 
 namespace clitk 
index 82e28e6e6c421be11de171eae8a1b7733791b30e..8e30eb39e6dbb4efeae79b8a6493d1094a4d22d0 100644 (file)
@@ -68,7 +68,11 @@ namespace clitk
     typedef itk::StatisticsImageFilter<InternalImageType> StatisticsImageFilterType;
     typedef itk::BinaryBallStructuringElement<InternalPixelType,InputImageDimension > KernelType;
     typedef clitk::ConditionalBinaryDilateImageFilter<InternalImageType, InternalImageType , KernelType> ConditionalBinaryDilateImageFilterType;
+#if ITK_VERSION_MAJOR >= 4
+    typedef itk::Testing::ComparisonImageFilter<InternalImageType, InternalImageType> DifferenceImageFilterType;
+#else
     typedef itk::DifferenceImageFilter<InternalImageType, InternalImageType> DifferenceImageFilterType;
+#endif
     typedef itk::CastImageFilter<InternalImageType, OutputImageType> OutputCastImageFilterType;
     typedef clitk::SetBackgroundImageFilter<InternalImageType, InternalImageType, InternalImageType> SetBackgroundImageFilterType;