]> Creatis software - clitk.git/blobdiff - registration/clitkAffineRegistrationGenericFilter.cxx
Remove warning sprintf
[clitk.git] / registration / clitkAffineRegistrationGenericFilter.cxx
index 3f0145eca9d10064044db55d8908f4aebc458633..6b0ecffbfdba87541e128945fceae0b13a0fcd5d 100644 (file)
@@ -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;