18 #ifndef itkSingleValuedVnlCostFunctionAdaptorv4_h
19 #define itkSingleValuedVnlCostFunctionAdaptorv4_h
23 #include "vnl/vnl_cost_function.h"
37 public vnl_cost_function
102 itkGetConstReferenceMacro(CachedValue,
MeasureType);
ObjectToObjectMetricBase::MeasureType MeasureType
vnl_vector< InternalMeasureType > InternalParametersType
InternalMeasureType f(const InternalParametersType &inparameters) override
ObjectToObjectMetricBase::Pointer m_ObjectMetric
SingleValuedVnlCostFunctionAdaptorv4(unsigned int spaceDimension)
void SetCostFunction(ObjectToObjectMetricBase *costFunction)
ObjectToObjectMetricBase::DerivativeType DerivativeType
DerivativeType m_CachedDerivative
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)
typename Superclass::MeasureType MeasureType
double InternalMeasureType
const ObjectToObjectMetricBase * GetCostFunction() const
void gradf(const InternalParametersType &inparameters, InternalDerivativeType &gradient) override
Abstraction of the Events used to communicating among filters and with GUIs.
Object::Pointer m_Reporter
vnl_vector< InternalMeasureType > InternalDerivativeType
unsigned long AddObserver(const EventObject &event, Command *) const
OptimizerParameters< InternalMeasureType > ScalesType
void compute(const InternalParametersType &x, InternalMeasureType *f, InternalDerivativeType *g) override
const ParametersType & GetCachedCurrentParameters() const
void ReportIteration(const EventObject &event) const
typename Superclass::DerivativeType DerivativeType
typename Superclass::ParametersType ParametersType
Superclass for callback/observer methods.
MeasureType m_CachedValue
ObjectToObjectMetricBase::ParametersType ParametersType