18 #ifndef itkMultipleValuedVnlCostFunctionAdaptor_h
19 #define itkMultipleValuedVnlCostFunctionAdaptor_h
22 #include "vnl/vnl_least_squares_function.h"
23 #include "ITKOptimizersExport.h"
68 m_CostFunction = costFunction;
75 return m_CostFunction;
80 f(
const InternalParametersType & inparameters, InternalMeasureType & measures)
override;
84 gradf(
const InternalParametersType & inparameters, InternalDerivativeType & gradient)
override;
88 compute(
const InternalParametersType & x, InternalMeasureType * ff, InternalDerivativeType * g);
92 ConvertExternalToInternalGradient(
const DerivativeType & input, InternalDerivativeType & output);
96 ConvertExternalToInternalMeasures(
const MeasureType & input, InternalMeasureType & output);
102 SetUseGradient(
bool);
107 this->SetUseGradient(
true);
112 this->SetUseGradient(
false);
115 GetUseGradient()
const;
119 SetScales(
const ScalesType & scales);
133 GetCachedValue()
const;
135 const DerivativeType &
136 GetCachedDerivative()
const;
138 const ParametersType &
139 GetCachedCurrentParameters()
const;
149 itkGetConstReferenceMacro(InverseScales, ScalesType);
153 bool m_ScalesInitialized{};