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)
virtual void compute(const InternalParametersType &x, InternalMeasureType *f, InternalDerivativeType *g) ITK_OVERRIDE
void SetCostFunction(ObjectToObjectMetricBase *costFunction)
ObjectToObjectMetricBase::DerivativeType DerivativeType
vnl_vector< InternalMeasureType > InternalDerivativeType
DerivativeType m_CachedDerivative
vnl_vector< InternalMeasureType > InternalParametersType
Base class for all object-to-object similarlity metrics added in ITKv4.
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
virtual InternalMeasureType f(const InternalParametersType &inparameters) ITK_OVERRIDE
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
virtual void gradf(const InternalParametersType &inparameters, InternalDerivativeType &gradient) ITK_OVERRIDE
const ParametersType & GetCachedCurrentParameters() const
Superclass::DerivativeType DerivativeType
void ReportIteration(const EventObject &event) const
ObjectToObjectMetricBase::ParametersType ParametersType
const ObjectToObjectMetricBase * GetCostFunction(void) const
Superclass for callback/observer methods.
MeasureType m_CachedValue