18#ifndef itkSingleValuedVnlCostFunctionAdaptorv4_h
19#define itkSingleValuedVnlCostFunctionAdaptorv4_h
23#include "vnl/vnl_cost_function.h"
Superclass for callback/observer methods.
OptimizerParameters< double > ParametersType
Abstraction of the Events used to communicating among filters and with GUIs.
Array< double > DerivativeType
This class is an Adaptor that allows to pass itk::ObjectToObjectMetricBase objects to vnl_optimizers ...
void ReportIteration(const EventObject &event) const
const ObjectToObjectMetricBase * GetCostFunction() const
double InternalMeasureType
const ParametersType & GetCachedCurrentParameters() const
vnl_vector< InternalMeasureType > InternalDerivativeType
void compute(const InternalParametersType &x, InternalMeasureType *fun, InternalDerivativeType *g) override
vnl_vector< InternalMeasureType > InternalParametersType
InternalMeasureType f(const InternalParametersType &inparameters) override
unsigned long AddObserver(const EventObject &event, Command *) const
SingleValuedVnlCostFunctionAdaptorv4(unsigned int spaceDimension)
void gradf(const InternalParametersType &inparameters, InternalDerivativeType &gradient) override
Object::Pointer m_Reporter
ObjectToObjectMetricBase::MeasureType MeasureType
DerivativeType m_CachedDerivative
void SetCostFunction(ObjectToObjectMetricBase *costFunction)
ObjectToObjectMetricBase::Pointer m_ObjectMetric
void ConvertExternalToInternalGradient(const DerivativeType &input, InternalDerivativeType &output) const
MeasureType m_CachedValue
void SetScales(const ScalesType &scales)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....