|
ITK
5.2.0
Insight Toolkit
|
Go to the documentation of this file.
18 #ifndef itkSingleValuedVnlCostFunctionAdaptor_h
19 #define itkSingleValuedVnlCostFunctionAdaptor_h
22 #include "vnl/vnl_cost_function.h"
23 #include "ITKOptimizersExport.h"
68 m_CostFunction = costFunction;
75 return m_CostFunction;
80 f(
const InternalParametersType & inparameters)
override;
84 gradf(
const InternalParametersType & inparameters, InternalDerivativeType & gradient)
override;
88 compute(
const InternalParametersType & x, InternalMeasureType * fun, InternalDerivativeType * g)
override;
92 ConvertExternalToInternalGradient(
const DerivativeType & input, InternalDerivativeType & output)
const;
96 SetScales(
const ScalesType & scales);
107 SetNegateCostFunction(
bool flag);
110 GetNegateCostFunction()
const;
115 m_NegateCostFunction =
true;
120 m_NegateCostFunction =
false;
135 GetCachedValue()
const;
137 const DerivativeType &
138 GetCachedDerivative()
const;
140 const ParametersType &
141 GetCachedCurrentParameters()
const;
SingleValuedCostFunction::MeasureType MeasureType
SingleValuedCostFunction::Pointer m_CostFunction
SingleValuedCostFunction::ParametersType ParametersType
vnl_vector< double > InternalParametersType
bool m_NegateCostFunction
Object::Pointer m_Reporter
This class is an Adaptor that allows to pass itk::SingleValuedCostFunctions to vnl_optimizers expecti...
ScalesType m_InverseScales
MeasureType m_CachedValue
Superclass for callback/observer methods.
void NegateCostFunctionOff()
void NegateCostFunctionOn()
double InternalMeasureType
const SingleValuedCostFunction * GetCostFunction() const
ParametersType m_CachedCurrentParameters
This class is a base for the CostFunctions returning a single value.
void SetCostFunction(SingleValuedCostFunction *costFunction)
Superclass::ParametersType ParametersType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
DerivativeType m_CachedDerivative
Array class with size defined at construction time.
Abstraction of the Events used to communicating among filters and with GUIs.
Array< ParametersValueType > DerivativeType
vnl_vector< double > InternalDerivativeType