]> Creatis software - clitk.git/blobdiff - itk/clitkBackProjectImageFilter.txx
Ensure compatibility with ITK < 4.12 for throw exception
[clitk.git] / itk / clitkBackProjectImageFilter.txx
index e6432266300f4e6f9017f557a94bda5accfd7b70..fa8d2613fec8815c80ae08abc3046a4000f65c81 100644 (file)
@@ -190,7 +190,11 @@ namespace clitk
   template <class InputImageType, class OutputImageType>
   void 
   BackProjectImageFilter<InputImageType, OutputImageType>
+#if ( ( ITK_VERSION_MAJOR == 4 ) && ( ITK_VERSION_MINOR > 12 ) || ( ITK_VERSION_MAJOR > 4 ))
   ::Initialize( void )
+#else
+  ::Initialize( void ) throw (itk::ExceptionObject)
+#endif
   {
     //Change the origin of the 2D input
     typename  InputImageType::ConstPointer inputPtr=this->GetInput();