18 #ifndef itkSingleValuedVnlCostFunctionAdaptorv4_h 19 #define itkSingleValuedVnlCostFunctionAdaptorv4_h 23 #include "vnl/vnl_cost_function.h" 37 public vnl_cost_function
78 virtual InternalMeasureType
f(
const InternalParametersType & inparameters) ITK_OVERRIDE;
81 virtual void gradf(
const InternalParametersType & inparameters, InternalDerivativeType & gradient) ITK_OVERRIDE;
84 virtual void compute(
const InternalParametersType & x, InternalMeasureType *
f, InternalDerivativeType *g) ITK_OVERRIDE;
90 void SetScales(
const ScalesType & scales);
102 itkGetConstReferenceMacro(CachedValue, MeasureType);
104 itkGetConstReferenceMacro(CachedDerivative, DerivativeType);
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
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes...
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
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
virtual InternalMeasureType f(const InternalParametersType &inparameters) override