15 #ifndef __itkScaledSingleValuedCostFunction_h
16 #define __itkScaledSingleValuedCostFunction_h
18 #include "itkSingleValuedCostFunction.h"
19 #include "itkIntTypes.h"
85 itkSetObjectMacro( UnscaledCostFunction,
Superclass );
87 itkGetObjectMacro( UnscaledCostFunction,
Superclass );
94 itkGetConstReferenceMacro( Scales,
ScalesType );
103 itkGetConstReferenceMacro( SquaredScales,
ScalesType );
106 itkSetMacro( UseScales,
bool );
109 itkGetConstMacro( UseScales,
bool );
112 itkBooleanMacro( NegateCostFunction );
115 itkSetMacro( NegateCostFunction,
bool );
117 itkGetConstMacro( NegateCostFunction,
bool );
133 void PrintSelf( std::ostream & os, Indent indent )
const;
154 #endif // #ifndef __itkScaledSingleValuedCostFunction_h
virtual void SetSquaredScales(const ScalesType &squaredScales)
Superclass::DerivativeType DerivativeType
ScalesType m_SquaredScales
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
Array< double > ScalesType
SmartPointer< const Self > ConstPointer
SmartPointer< Self > Pointer
Superclass::Pointer SingleValuedCostFunctionPointer
A cost function that applies a scaling to another cost function.
virtual void ConvertScaledToUnscaledParameters(ParametersType ¶meters) const
void operator=(const Self &)
ScaledSingleValuedCostFunction Self
ScaledSingleValuedCostFunction()
SingleValuedCostFunctionPointer m_UnscaledCostFunction
Superclass::ParametersType ParametersType
virtual ~ScaledSingleValuedCostFunction()
Superclass::MeasureType MeasureType