19 #ifndef __itkScaledSingleValuedCostFunction_h 20 #define __itkScaledSingleValuedCostFunction_h 22 #include "itkSingleValuedCostFunction.h" 23 #include "itkIntTypes.h" 69 virtual MeasureType
GetValue(
const ParametersType & parameters )
const;
76 const ParametersType & parameters,
77 DerivativeType & derivative )
const;
81 const ParametersType & parameters,
83 DerivativeType & derivative )
const;
89 itkSetObjectMacro( UnscaledCostFunction, Superclass );
91 itkGetObjectMacro( UnscaledCostFunction, Superclass );
95 virtual void SetScales(
const ScalesType & scales );
98 itkGetConstReferenceMacro( Scales, ScalesType );
107 itkGetConstReferenceMacro( SquaredScales, ScalesType );
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;
157 #endif // #ifndef __itkScaledSingleValuedCostFunction_h virtual void SetSquaredScales(const ScalesType &squaredScales)
Superclass::DerivativeType DerivativeType
Array< double > ScalesType
ScalesType m_SquaredScales
SmartPointer< const Self > ConstPointer
virtual void ConvertUnscaledToScaledParameters(ParametersType ¶meters) const
bool m_NegateCostFunction
SingleValuedCostFunction Superclass
void PrintSelf(std::ostream &os, Indent indent) const
virtual MeasureType GetValue(const ParametersType ¶meters) const
virtual void GetDerivative(const ParametersType ¶meters, DerivativeType &derivative) const
unsigned int NumberOfParametersType
virtual void SetScales(const ScalesType &scales)
virtual NumberOfParametersType GetNumberOfParameters(void) const
virtual void GetValueAndDerivative(const ParametersType ¶meters, MeasureType &value, DerivativeType &derivative) const
Superclass::Pointer SingleValuedCostFunctionPointer
A cost function that applies a scaling to another cost function.
virtual void ConvertScaledToUnscaledParameters(ParametersType ¶meters) const
void operator=(const Self &)
SmartPointer< Self > Pointer
ScaledSingleValuedCostFunction Self
ScaledSingleValuedCostFunction()
SingleValuedCostFunctionPointer m_UnscaledCostFunction
Superclass::ParametersType ParametersType
virtual ~ScaledSingleValuedCostFunction()
Superclass::MeasureType MeasureType