]> Creatis software - clitk.git/commitdiff
itk4.3 compatibility
authorVivien Delmon <vivien.delmon@creatis.insa-lyon.fr>
Mon, 14 Jan 2013 17:16:48 +0000 (18:16 +0100)
committerVivien Delmon <vivien.delmon@creatis.insa-lyon.fr>
Mon, 14 Jan 2013 17:16:48 +0000 (18:16 +0100)
- Use Update instead of StartRegistration

registration/clitkAffineRegistrationGenericFilter.cxx
registration/clitkBLUTDIRGenericFilter.cxx

index 3f0145e..6b0ecff 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;
index 06045c5..c786eeb 100644 (file)
@@ -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 )
       {