]> Creatis software - clitk.git/blobdiff - registration/clitkCorrelationRatioImageToImageMetric.txx
Ensure compatibility with ITK < 4.12 for throw exception
[clitk.git] / registration / clitkCorrelationRatioImageToImageMetric.txx
index 685a0435e6b619154bb5de6b3e69864f579e5777..1454539c8183b24d2d56a8239d027061076732d9 100644 (file)
@@ -51,7 +51,11 @@ CorrelationRatioImageToImageMetric<TFixedImage,TMovingImage>
 template <class TFixedImage, class TMovingImage>
 void
 CorrelationRatioImageToImageMetric<TFixedImage,TMovingImage>
+#if ( ( ITK_VERSION_MAJOR == 4 ) && ( ITK_VERSION_MINOR > 12 ) || ( ITK_VERSION_MAJOR > 4 ))
 ::Initialize(void)
+#else
+::Initialize(void) throw ( ExceptionObject )
+#endif
 {
 
   this->Superclass::Initialize();