}
- virtual void GenerateInputRequestedRegion() ITK_OVERRIDE throw(InvalidRequestedRegionError);
+ virtual void GenerateInputRequestedRegion() throw(InvalidRequestedRegionError) ITK_OVERRIDE;
void EnlargeOutputRequestedRegion (DataObject * output) ITK_OVERRIDE;
protected:
m_VerboseProgress = false;
}
virtual ~RelativePositionPropImageFilter() {}
- void PrintSelf(std::ostream& os, Indent indent) ITK_OVERRIDE const;
+ void PrintSelf(std::ostream& os, Indent indent) const ITK_OVERRIDE;
//void GenerateThreadedData(const typename TOutputImage::RegionType& outputRegionForThread, int threadId);
void GenerateData() ITK_OVERRIDE;
/** Run-time type information (and related methods). */
itkTypeMacro(AddRelativePositionConstraintToLabelImageFilter, ImageToImageFilter);
- FILTERBASE_INIT ITK_OVERRIDE;
+ FILTERBASE_INIT;
/** Some convenient typedefs. */
typedef typename ImageType::ConstPointer ImageConstPointer;
/** Run-time type information (and related methods). */
itkTypeMacro(ExtractSliceFilter, ImageToImageFilter);
- FILTERBASE_INIT ITK_OVERRIDE;
+ FILTERBASE_INIT;
/** Input : initial image and object */
void SetInput(const ImageType * image) ITK_OVERRIDE;
SetBackgroundImageFilter() {}
virtual ~SetBackgroundImageFilter() {}
- void PrintSelf(std::ostream &os, itk::Indent indent) ITK_OVERRIDE const
+ void PrintSelf(std::ostream &os, itk::Indent indent) const ITK_OVERRIDE
{
Superclass::PrintSelf(os, indent);
os << indent << "OutsideValue: " << this->GetOutsideValue() << std::endl;
typedef typename RelPosFilterType::OrientationTypeEnumeration OrientationTypeEnumeration;
/** Input : initial image and object */
- void SetInput(const ImageType * image) ITK_OVERRIDE;
+ virtual void SetInput(const ImageType * image) ITK_OVERRIDE;
void SetInputObject(const ImageType * image);
// Options
/** Evaluate the function at a ContinuousIndex position.
Overwritten for taking LUT into account (RP: multi-threading-compatible version,
the threadID is actually ignored) */
- virtual OutputType EvaluateAtContinuousIndex(const ContinuousIndexType & index, unsigned int /* threadID */ ) ITK_OVERRIDE const
+ virtual OutputType EvaluateAtContinuousIndex(const ContinuousIndexType & index, unsigned int /* threadID */ ) const ITK_OVERRIDE
{
return this->EvaluateAtContinuousIndex( index );
}
/** Evaluate the function at a ContinuousIndex position.
Overwritten for taking LUT into account */
- virtual OutputType EvaluateAtContinuousIndex(const ContinuousIndexType & index ) ITK_OVERRIDE const;
+ virtual OutputType EvaluateAtContinuousIndex(const ContinuousIndexType & index ) const ITK_OVERRIDE;
/** Static convenient functions to compute BSpline weights for
various order, dimension, sampling ... **/
}
// Execute
- void Execute(itk::Object *caller, const itk::EventObject & event) {
+ void Execute(itk::Object *caller, const itk::EventObject & event) ITK_OVERRIDE {
Execute( (const itk::Object *)caller, event);
}
- void Execute(const itk::Object * object, const itk::EventObject & event) {
+ void Execute(const itk::Object * object, const itk::EventObject & event) ITK_OVERRIDE {
if ( !(itk::IterationEvent().CheckEvent( &event )) ) {
return;
}
// Two arguments are passed to the Execute() method: the first
// is the pointer to the object which invoked the event and the
// second is the event that was invoked.
- void Execute(itk::Object * object, const itk::EventObject & event) {
+ void Execute(itk::Object * object, const itk::EventObject & event) ITK_OVERRIDE {
if ( !(itk::IterationEvent().CheckEvent( &event )) ) {
return;
}
}
}
- void Execute(const itk::Object * , const itk::EventObject & ) {
+ void Execute(const itk::Object * , const itk::EventObject & ) ITK_OVERRIDE {
return;
}
* (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 );
+ virtual void Initialize(void) throw ( ExceptionObject ) ITK_OVERRIDE;
/** 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,
/** Start optimization with an initial value. */
- void StartOptimization( void );
+ virtual void StartOptimization( void ) ITK_OVERRIDE;
/** Plug in a Cost Function into the optimizer */
- virtual void SetCostFunction( itk::SingleValuedCostFunction * costFunction );
+ virtual void SetCostFunction( itk::SingleValuedCostFunction * costFunction ) ITK_OVERRIDE;
/** Set the lower bound value for each variable. */
virtual void SetLowerBound( const BoundValueType & value );
itkGetConstReferenceMacro( InfinityNormOfProjectedGradient, double );
/** Get the reason for termination */
- const std::string GetStopConditionDescription() const;
+ virtual const std::string GetStopConditionDescription() const ITK_OVERRIDE;
protected:
LBFGSBOptimizer();
virtual ~LBFGSBOptimizer();
- void PrintSelf(std::ostream& os, itk::Indent indent) const;
+ void PrintSelf(std::ostream& os, itk::Indent indent) const ITK_OVERRIDE;
typedef Superclass::CostFunctionAdaptorType CostFunctionAdaptorType;
* (2) uniformly select NumberOfSpatialSamples within
* the FixedImageRegion, and
* (3) allocate memory for pdf data structures. */
- virtual void Initialize(void) throw ( itk::ExceptionObject );
+ virtual void Initialize(void) throw ( itk::ExceptionObject ) ITK_OVERRIDE;
/** Get the value. */
- MeasureType GetValue( const ParametersType & parameters ) const;
+ MeasureType GetValue( const ParametersType & parameters ) const ITK_OVERRIDE;
/** Get the derivatives of the match measure. */
void GetDerivative( const ParametersType & parameters,
- DerivativeType & Derivative ) const;
+ DerivativeType & Derivative ) const ITK_OVERRIDE;
/** Get the value and derivatives for single valued optimizers. */
void GetValueAndDerivative( const ParametersType & parameters,
MeasureType & Value,
- DerivativeType & Derivative ) const;
+ DerivativeType & Derivative ) const ITK_OVERRIDE;
protected:
NormalizedCorrelationImageToImageMetric();
virtual ~NormalizedCorrelationImageToImageMetric();
- void PrintSelf(std::ostream& os, itk::Indent indent) const;
+ void PrintSelf(std::ostream& os, itk::Indent indent) const ITK_OVERRIDE;
private:
inline bool GetValueThreadProcessSample( unsigned int threadID,
unsigned long fixedImageSample,
const MovingImagePointType & mappedPoint,
- double movingImageValue ) const;
+ double movingImageValue ) const ITK_OVERRIDE;
inline bool GetValueAndDerivativeThreadProcessSample( unsigned int threadID,
const MovingImagePointType & mappedPoint,
double movingImageValue,
const ImageDerivativesType &
- movingImageGradientValue ) const;
+ movingImageGradientValue ) const ITK_OVERRIDE;
AccumulateType *m_ThreaderSFF, *m_ThreaderSMM, *m_ThreaderSFM, *m_ThreaderSF, *m_ThreaderSM;
mutable AccumulateType m_SFF, m_SMM, m_SFM, m_SF, m_SM;
* (2) uniformly select NumberOfSpatialSamples within
* the FixedImageRegion, and
* (3) allocate memory for pdf data structures. */
- virtual void Initialize(void) throw ( itk::ExceptionObject );
+ virtual void Initialize(void) throw ( itk::ExceptionObject ) ITK_OVERRIDE;
/** Get the value. */
- MeasureType GetValue( const ParametersType & parameters ) const;
+ MeasureType GetValue( const ParametersType & parameters ) const ITK_OVERRIDE;
/** Get the derivatives of the match measure. */
void GetDerivative( const ParametersType & parameters,
- DerivativeType & Derivative ) const;
+ DerivativeType & Derivative ) const ITK_OVERRIDE;
/** Get the value and derivatives for single valued optimizers. */
void GetValueAndDerivative( const ParametersType & parameters,
MeasureType & Value,
- DerivativeType & Derivative ) const;
+ DerivativeType & Derivative ) const ITK_OVERRIDE;
protected:
NormalizedCorrelationImageToImageMetricFor3DBLUTFFD();
virtual ~NormalizedCorrelationImageToImageMetricFor3DBLUTFFD();
- void PrintSelf(std::ostream& os, itk::Indent indent) const;
+ void PrintSelf(std::ostream& os, itk::Indent indent) const ITK_OVERRIDE;
private:
inline bool GetValueThreadProcessSample( unsigned int threadID,
unsigned long fixedImageSample,
const MovingImagePointType & mappedPoint,
- double movingImageValue ) const;
+ double movingImageValue ) const ITK_OVERRIDE;
inline bool GetValueAndDerivativeThreadProcessSample( unsigned int threadID,
const MovingImagePointType & mappedPoint,
double movingImageValue,
const ImageDerivativesType &
- movingImageGradientValue ) const;
+ movingImageGradientValue ) const ITK_OVERRIDE;
AccumulateType *m_ThreaderSFF, *m_ThreaderSMM, *m_ThreaderSFM, *m_ThreaderSF, *m_ThreaderSM;
mutable AccumulateType m_SFF, m_SMM, m_SFM, m_SF, m_SM;
* (2) uniformly select NumberOfSpatialSamples within
* the FixedImageRegion, and
* (3) allocate memory for pdf data structures. */
- virtual void Initialize(void) throw ( ExceptionObject );
+ virtual void Initialize(void) throw ( ExceptionObject ) ITK_OVERRIDE;
/** Get the value. */
- MeasureType GetValue( const ParametersType & parameters ) const;
+ MeasureType GetValue( const ParametersType & parameters ) const ITK_OVERRIDE;
/** Get the derivatives of the match measure. */
void GetDerivative( const ParametersType & parameters,
- DerivativeType & Derivative ) const;
+ DerivativeType & Derivative ) const ITK_OVERRIDE;
/** Get the value and derivatives for single valued optimizers. */
void GetValueAndDerivative( const ParametersType & parameters,
MeasureType & Value,
- DerivativeType & Derivative ) const;
+ DerivativeType & Derivative ) const ITK_OVERRIDE;
/** Number of bins to used in the histogram. Typical value is 50. */
itkSetClampMacro( NumberOfHistogramBins, unsigned long,
MattesMutualInformationImageToImageMetricFor3DBLUTFFD();
virtual ~MattesMutualInformationImageToImageMetricFor3DBLUTFFD();
- void PrintSelf(std::ostream& os, Indent indent) const;
+ void PrintSelf(std::ostream& os, Indent indent) const ITK_OVERRIDE;
private:
virtual inline void GetValueThreadPreProcess( unsigned int threadID,
- bool withinSampleThread ) const;
+ bool withinSampleThread ) const ITK_OVERRIDE;
virtual inline bool GetValueThreadProcessSample( unsigned int threadID,
unsigned long fixedImageSample,
const MovingImagePointType & mappedPoint,
- double movingImageValue ) const;
+ double movingImageValue ) const ITK_OVERRIDE;
virtual inline void GetValueThreadPostProcess( unsigned int threadID,
- bool withinSampleThread ) const;
+ bool withinSampleThread ) const ITK_OVERRIDE;
virtual inline void GetValueAndDerivativeThreadPreProcess(
unsigned int threadID,
- bool withinSampleThread ) const;
+ bool withinSampleThread ) const ITK_OVERRIDE;
virtual inline bool GetValueAndDerivativeThreadProcessSample( unsigned int threadID,
unsigned long fixedImageSample,
const MovingImagePointType & mappedPoint,
double movingImageValue,
const ImageDerivativesType &
- movingImageGradientValue ) const;
+ movingImageGradientValue ) const ITK_OVERRIDE;
virtual inline void GetValueAndDerivativeThreadPostProcess(
unsigned int threadID,
- bool withinSampleThread ) const;
+ bool withinSampleThread ) const ITK_OVERRIDE;
};
* (2) uniformly select NumberOfSpatialSamples within
* the FixedImageRegion, and
* (3) allocate memory for pdf data structures. */
- virtual void Initialize(void) throw ( ExceptionObject );
+ virtual void Initialize(void) throw ( ExceptionObject ) ITK_OVERRIDE;
/** Get the value. */
- MeasureType GetValue( const ParametersType & parameters ) const;
+ MeasureType GetValue( const ParametersType & parameters ) const ITK_OVERRIDE;
/** Get the derivatives of the match measure. */
void GetDerivative( const ParametersType & parameters,
- DerivativeType & Derivative ) const;
+ DerivativeType & Derivative ) const ITK_OVERRIDE;
/** Get the value and derivatives for single valued optimizers. */
void GetValueAndDerivative( const ParametersType & parameters,
MeasureType & Value,
- DerivativeType & Derivative ) const;
+ DerivativeType & Derivative ) const ITK_OVERRIDE;
protected:
MeanSquaresImageToImageMetricFor3DBLUTFFD();
virtual ~MeanSquaresImageToImageMetricFor3DBLUTFFD();
- void PrintSelf(std::ostream& os, Indent indent) const;
+ void PrintSelf(std::ostream& os, Indent indent) const ITK_OVERRIDE;
private:
inline bool GetValueThreadProcessSample( unsigned int threadID,
unsigned long fixedImageSample,
const MovingImagePointType & mappedPoint,
- double movingImageValue ) const;
+ double movingImageValue ) const ITK_OVERRIDE;
inline bool GetValueAndDerivativeThreadProcessSample( unsigned int threadID,
unsigned long fixedImageSample,
const MovingImagePointType & mappedPoint,
double movingImageValue,
const ImageDerivativesType &
- movingImageGradientValue ) const;
+ movingImageGradientValue ) const ITK_OVERRIDE;
MeasureType * m_ThreaderMSE;
DerivativeType * m_ThreaderMSEDerivatives;