From 462d0ccda83267925a5bdb3d6448e1e1b8d1fc94 Mon Sep 17 00:00:00 2001 From: Vivien Delmon Date: Tue, 9 Aug 2011 10:41:41 +0200 Subject: [PATCH] itkv4 migration: Rename DifferenceImageFilter to ComparisonImageFilter --- itk/clitkReconstructThroughDilationImageFilter.h | 6 +++++- itk/clitkReconstructThroughDilationImageFilter.txx | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) 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; -- 2.47.1