]> Creatis software - clitk.git/blobdiff - registration/clitkCorrelationRatioImageToImageMetric.h
Ensure compatibility with ITK < 4.12 for throw exception
[clitk.git] / registration / clitkCorrelationRatioImageToImageMetric.h
index 51e15ae6023c238e9a24377759fc6f051136aed7..a4bc342ae230450900ffe0c4fb16a85cbfe8e346 100644 (file)
@@ -105,7 +105,11 @@ public:
     *  (1) making sure that all the components are present and plugged
     *      together correctly,
     *  (3) allocate memory for bin data structures. */
+#if ( ( ITK_VERSION_MAJOR == 4 ) && ( ITK_VERSION_MINOR > 12 ) || ( ITK_VERSION_MAJOR > 4 ))
   virtual void Initialize(void) ITK_OVERRIDE;
+#else
+  virtual void Initialize(void) throw ( ExceptionObject ) ITK_OVERRIDE;
+#endif
 
   /** Get the derivatives of the match measure. */
   void GetDerivative( const TransformParametersType & parameters,