From 876ae811f8e0fbdf06746779754a71d18c73c112 Mon Sep 17 00:00:00 2001 From: Vivien Delmon Date: Mon, 14 Jan 2013 18:16:48 +0100 Subject: [PATCH] itk4.3 compatibility - Use Update instead of StartRegistration --- registration/clitkAffineRegistrationGenericFilter.cxx | 4 ++++ registration/clitkBLUTDIRGenericFilter.cxx | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/registration/clitkAffineRegistrationGenericFilter.cxx b/registration/clitkAffineRegistrationGenericFilter.cxx index 3f0145e..6b0ecff 100644 --- a/registration/clitkAffineRegistrationGenericFilter.cxx +++ b/registration/clitkAffineRegistrationGenericFilter.cxx @@ -541,7 +541,11 @@ void AffineRegistrationGenericFilter::UpdateWithInputImageType() if (m_Verbose) std::cout << "Starting the registration now..." << std::endl; try { +#if ITK_VERSION_MAJOR < 4 || (ITK_VERSION_MAJOR == 4 && ITK_VERSION_MINOR <= 2) registration->StartRegistration(); +#else + registration->Update(); +#endif } catch ( itk::ExceptionObject & err ) { std::cerr << "ExceptionObject caught !" << std::endl; std::cerr << err << std::endl; diff --git a/registration/clitkBLUTDIRGenericFilter.cxx b/registration/clitkBLUTDIRGenericFilter.cxx index 06045c5..c786eeb 100644 --- a/registration/clitkBLUTDIRGenericFilter.cxx +++ b/registration/clitkBLUTDIRGenericFilter.cxx @@ -733,7 +733,11 @@ namespace clitk try { +#if ITK_VERSION_MAJOR < 4 || (ITK_VERSION_MAJOR == 4 && ITK_VERSION_MINOR <= 2) registration->StartRegistration(); +#else + registration->Update(); +#endif } catch( itk::ExceptionObject & err ) { -- 2.47.1