X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=registration%2FclitkCorrelationRatioImageToImageMetric.h;h=a4bc342ae230450900ffe0c4fb16a85cbfe8e346;hb=1c6241402b25efea0052f0464be9a494e761b19e;hp=c8f9d21475cc4bf65b0a1775b6c40f28ea0203c6;hpb=573d80d0f7a17607d2ee883c21c940c0ba020282;p=clitk.git diff --git a/registration/clitkCorrelationRatioImageToImageMetric.h b/registration/clitkCorrelationRatioImageToImageMetric.h index c8f9d21..a4bc342 100644 --- a/registration/clitkCorrelationRatioImageToImageMetric.h +++ b/registration/clitkCorrelationRatioImageToImageMetric.h @@ -105,18 +105,22 @@ public: * (1) making sure that all the components are present and plugged * together correctly, * (3) allocate memory for bin data structures. */ - virtual void Initialize(void) throw ( ExceptionObject ); +#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, - DerivativeType & derivative ) const; + DerivativeType & derivative ) const ITK_OVERRIDE; /** Get the value for single valued optimizers. */ - MeasureType GetValue( const TransformParametersType & parameters ) const; + MeasureType GetValue( const TransformParametersType & parameters ) const ITK_OVERRIDE; /** Get value and derivatives for multiple valued optimizers. */ void GetValueAndDerivative( const TransformParametersType & parameters, - MeasureType& Value, DerivativeType& Derivative ) const; + MeasureType& Value, DerivativeType& Derivative ) const ITK_OVERRIDE; /** Number of bins to used in the calculation. Typical value is 50. */ itkSetClampMacro( NumberOfBins, unsigned long,