18 #ifndef itkSingleValuedVnlCostFunctionAdaptorv4_h
19 #define itkSingleValuedVnlCostFunctionAdaptorv4_h
23 #include "vnl/vnl_cost_function.h"
37 public vnl_cost_function
102 itkGetConstReferenceMacro(CachedValue,
MeasureType);
Superclass::ParametersType ParametersType
Superclass::MeasureType MeasureType
ObjectToObjectMetricBase::Pointer m_ObjectMetric
SingleValuedVnlCostFunctionAdaptorv4(unsigned int spaceDimension)
void SetCostFunction(ObjectToObjectMetricBase *costFunction)
ObjectToObjectMetricBase::DerivativeType DerivativeType
vnl_vector< InternalMeasureType > InternalDerivativeType
DerivativeType m_CachedDerivative
vnl_vector< InternalMeasureType > InternalParametersType
virtual void gradf(const InternalParametersType &inparameters, InternalDerivativeType &gradient) override
Base class for all object-to-object similarlity metrics added in ITKv4.
virtual void compute(const InternalParametersType &x, InternalMeasureType *f, InternalDerivativeType *g) override
void ConvertExternalToInternalGradient(const DerivativeType &input, InternalDerivativeType &output) const
This class is an Adaptor that allows to pass itk::ObjectToObjectMetricBase objects to vnl_optimizers ...
void SetScales(const ScalesType &scales)
double InternalMeasureType
ObjectToObjectMetricBase::MeasureType MeasureType
Abstraction of the Events used to communicating among filters and with GUIs.
Object::Pointer m_Reporter
OptimizerParameters< InternalMeasureType > ScalesType
unsigned long AddObserver(const EventObject &event, Command *) const
const ParametersType & GetCachedCurrentParameters() const
void ReportIteration(const EventObject &event) const
ObjectToObjectMetricBase::ParametersType ParametersType
const ObjectToObjectMetricBase * GetCostFunction(void) const
Superclass for callback/observer methods.
MeasureType m_CachedValue
virtual InternalMeasureType f(const InternalParametersType &inparameters) override