18 #ifndef __itkMultipleValuedVnlCostFunctionAdaptor_h
19 #define __itkMultipleValuedVnlCostFunctionAdaptor_h
22 #include "vnl/vnl_least_squares_function.h"
37 public vnl_least_squares_function
64 unsigned int numberOfValues);
vnl_vector< double > InternalParametersType
ParametersType m_CachedCurrentParameters
This class is a base for the CostFunctions returning a multiple values.
void SetCostFunction(MultipleValuedCostFunction *costFunction)
MultipleValuedCostFunction::MeasureType MeasureType
const MeasureType & GetCachedValue() const
void SetUseGradient(bool)
Superclass::ParametersType ParametersType
void ConvertExternalToInternalMeasures(const MeasureType &input, InternalMeasureType &output)
DerivativeType m_CachedDerivative
MultipleValuedCostFunction::Pointer m_CostFunction
virtual void gradf(const InternalParametersType &inparameters, InternalDerivativeType &gradient)
void ReportIteration(const EventObject &event) const
Object::Pointer m_Reporter
const DerivativeType & GetCachedDerivative() const
virtual void compute(const InternalParametersType &x, InternalMeasureType *f, InternalDerivativeType *g)
vnl_vector< double > InternalMeasureType
Array2D class representing a 2D array with size defined at construction time.
unsigned long AddObserver(const EventObject &event, Command *) const
MultipleValuedCostFunction::ParametersType ParametersType
virtual void f(const InternalParametersType &inparameters, InternalMeasureType &measures)
const ParametersType & GetCachedCurrentParameters() const
Abstraction of the Events used to communicating among filters and with GUIs.
void ConvertExternalToInternalGradient(const DerivativeType &input, InternalDerivativeType &output)
ScalesType m_InverseScales
bool GetUseGradient() const
void SetScales(const ScalesType &scales)
const MultipleValuedCostFunction * GetCostFunction(void) const
MeasureType m_CachedValue
This class is an Adaptor that allows to pass itk::MultipleValuedCostFunctions to vnl_optimizers expec...
Array< double > ScalesType
vnl_matrix< double > InternalDerivativeType
MultipleValuedCostFunction::DerivativeType DerivativeType
Superclass for callback/observer methods.
MultipleValuedVnlCostFunctionAdaptor(unsigned int spaceDimension, unsigned int numberOfValues)