From: Vivien Delmon Date: Tue, 9 Aug 2011 08:41:41 +0000 (+0200) Subject: itkv4 migration: Rename DifferenceImageFilter to ComparisonImageFilter X-Git-Tag: v1.3.0~240^2~5 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=462d0ccda83267925a5bdb3d6448e1e1b8d1fc94;p=clitk.git itkv4 migration: Rename DifferenceImageFilter to ComparisonImageFilter --- diff --git a/itk/clitkReconstructThroughDilationImageFilter.h b/itk/clitkReconstructThroughDilationImageFilter.h index 1c2f6a3..32d31fe 100644 --- a/itk/clitkReconstructThroughDilationImageFilter.h +++ b/itk/clitkReconstructThroughDilationImageFilter.h @@ -39,7 +39,11 @@ #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 diff --git a/itk/clitkReconstructThroughDilationImageFilter.txx b/itk/clitkReconstructThroughDilationImageFilter.txx index 82e28e6..8e30eb3 100644 --- a/itk/clitkReconstructThroughDilationImageFilter.txx +++ b/itk/clitkReconstructThroughDilationImageFilter.txx @@ -68,7 +68,11 @@ namespace clitk typedef itk::StatisticsImageFilter StatisticsImageFilterType; typedef itk::BinaryBallStructuringElement KernelType; typedef clitk::ConditionalBinaryDilateImageFilter ConditionalBinaryDilateImageFilterType; +#if ITK_VERSION_MAJOR >= 4 + typedef itk::Testing::ComparisonImageFilter DifferenceImageFilterType; +#else typedef itk::DifferenceImageFilter DifferenceImageFilterType; +#endif typedef itk::CastImageFilter OutputCastImageFilterType; typedef clitk::SetBackgroundImageFilter SetBackgroundImageFilterType;