X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=registration%2FclitkAffineRegistrationGenericFilter.cxx;h=6b0ecffbfdba87541e128945fceae0b13a0fcd5d;hb=bfd2c4f867ddeaa1fdb556c44e58aabe467e64b5;hp=3f0145eca9d10064044db55d8908f4aebc458633;hpb=4d95e8a4680c1f0e635da4a36b336d316f16b8ba;p=clitk.git 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;