19#ifndef __itkScaledSingleValuedCostFunction_h
20#define __itkScaledSingleValuedCostFunction_h
22#include "itkSingleValuedCostFunction.h"
23#include "itkIntTypes.h"
110 itkSetMacro( UseScales,
bool );
113 itkGetConstMacro( UseScales,
bool );
116 itkBooleanMacro( NegateCostFunction );
119 itkSetMacro( NegateCostFunction,
bool );
121 itkGetConstMacro( NegateCostFunction,
bool );
137 void PrintSelf( std::ostream & os, Indent indent )
const override;
A cost function that applies a scaling to another cost function.
virtual void SetScales(const ScalesType &scales)
itkGetModifiableObjectMacro(UnscaledCostFunction, Superclass)
virtual void ConvertUnscaledToScaledParameters(ParametersType ¶meters) const
ScaledSingleValuedCostFunction Self
Array< double > ScalesType
SmartPointer< Self > Pointer
Superclass::ParametersType ParametersType
SmartPointer< const Self > ConstPointer
SingleValuedCostFunction Superclass
void operator=(const Self &)
virtual void ConvertScaledToUnscaledParameters(ParametersType ¶meters) const
Superclass::Pointer SingleValuedCostFunctionPointer
unsigned int NumberOfParametersType
Superclass::DerivativeType DerivativeType
SingleValuedCostFunctionPointer m_UnscaledCostFunction
~ScaledSingleValuedCostFunction() override
void PrintSelf(std::ostream &os, Indent indent) const override
virtual void SetSquaredScales(const ScalesType &squaredScales)
NumberOfParametersType GetNumberOfParameters(void) const override
bool m_NegateCostFunction
ScaledSingleValuedCostFunction(const Self &)
Superclass::MeasureType MeasureType
ScaledSingleValuedCostFunction()
void GetDerivative(const ParametersType ¶meters, DerivativeType &derivative) const override
MeasureType GetValue(const ParametersType ¶meters) const override
ScalesType m_SquaredScales
void GetValueAndDerivative(const ParametersType ¶meters, MeasureType &value, DerivativeType &derivative) const override