18 #ifndef __itkSingleValuedVnlCostFunctionAdaptor_h
19 #define __itkSingleValuedVnlCostFunctionAdaptor_h
22 #include "vnl/vnl_cost_function.h"
37 public vnl_cost_function
const MeasureType & GetCachedValue() const
Array class with size defined at construction time.
SingleValuedCostFunction::DerivativeType DerivativeType
unsigned long AddObserver(const EventObject &event, Command *) const
This class is a base for the CostFunctions returning a single value.
void ReportIteration(const EventObject &event) const
void SetNegateCostFunction(bool value)
Object::Pointer m_Reporter
void NegateCostFunctionOff()
vnl_vector< double > InternalDerivativeType
This class is an Adaptor that allows to pass itk::SingleValuedCostFunctions to vnl_optimizers expecti...
bool GetNegateCostFunction() const
MeasureType m_CachedValue
bool m_NegateCostFunction
double InternalMeasureType
SingleValuedCostFunction::Pointer m_CostFunction
const DerivativeType & GetCachedDerivative() const
SingleValuedCostFunction::MeasureType MeasureType
virtual InternalMeasureType f(const InternalParametersType &inparameters)
void NegateCostFunctionOn()
virtual void gradf(const InternalParametersType &inparameters, InternalDerivativeType &gradient)
SingleValuedCostFunction::ParametersType ParametersType
SingleValuedVnlCostFunctionAdaptor(unsigned int spaceDimension)
DerivativeType m_CachedDerivative
void SetCostFunction(SingleValuedCostFunction *costFunction)
ParametersType m_CachedCurrentParameters
Array< double > ScalesType
Abstraction of the Events used to communicating among filters and with GUIs.
Superclass::ParametersType ParametersType
const ParametersType & GetCachedCurrentParameters() const
ScalesType m_InverseScales
void ConvertExternalToInternalGradient(const DerivativeType &input, InternalDerivativeType &output) const
vnl_vector< double > InternalParametersType
const SingleValuedCostFunction * GetCostFunction(void) const
virtual void compute(const InternalParametersType &x, InternalMeasureType *f, InternalDerivativeType *g)
void SetScales(const ScalesType &scales)
Superclass for callback/observer methods.