#include <itkMultipleValuedVnlCostFunctionAdaptor.h>
Collaboration diagram for itk::MultipleValuedVnlCostFunctionAdaptor:

This class returns a single valued.
Optimizers
Definition at line 36 of file itkMultipleValuedVnlCostFunctionAdaptor.h.
Public Types | |
| typedef MultipleValuedCostFunction::DerivativeType | DerivativeType |
| typedef vnl_matrix< double > | InternalDerivativeType |
| typedef vnl_vector< double > | InternalMeasureType |
| typedef vnl_vector< double > | InternalParametersType |
| typedef MultipleValuedCostFunction::MeasureType | MeasureType |
| typedef MultipleValuedCostFunction::ParametersType | ParametersType |
| typedef Array< double > | ScalesType |
Public Member Functions | |
| unsigned long | AddObserver (const EventObject &event, Command *) const |
| virtual void | compute (const InternalParametersType &x, InternalMeasureType *f, InternalDerivativeType *g) |
| void | ConvertExternalToInternalGradient (const DerivativeType &input, InternalDerivativeType &output) |
| void | ConvertExternalToInternalMeasures (const MeasureType &input, InternalMeasureType &output) |
| Return the value of the last evaluation to the value of the cost function *Note that this method DOES NOT triggers a computation of the function or *the it only returns previous values Therefore the values here *are only valid after you invoke the | f () or gradf() methods.*/const MeasureType &GetCachedValue() const |
| virtual void | f (const InternalParametersType &inparameters, InternalMeasureType &measures) |
| const ParametersType & | GetCachedCurrentParameters () const |
| const DerivativeType & | GetCachedDerivative () const |
| const MultipleValuedCostFunction * | GetCostFunction (void) const |
| bool | GetUseGradient () const |
| virtual void | gradf (const InternalParametersType &inparameters, InternalDerivativeType &gradient) |
| MultipleValuedVnlCostFunctionAdaptor (unsigned int spaceDimension, unsigned int numberOfValues) | |
| void | SetCostFunction (MultipleValuedCostFunction *costFunction) |
| void | SetScales (const ScalesType &scales) |
| void | UseGradientOff () |
| void | UseGradientOn () |
Public Attributes | |
| Return the value of the last evaluation to the value of the cost function *Note that this method DOES NOT triggers a computation of the function or *the | derivatives |
Protected Member Functions | |
| void | ReportIteration (const EventObject &event) const |
|
|
Derivatives of the MultipleValuedCostFunction Definition at line 57 of file itkMultipleValuedVnlCostFunctionAdaptor.h. |
|
|
InternalGradientType typedef. Definition at line 48 of file itkMultipleValuedVnlCostFunctionAdaptor.h. |
|
|
InternalMeasureType typedef. Definition at line 45 of file itkMultipleValuedVnlCostFunctionAdaptor.h. |
|
|
InternalParametersType typedef. Definition at line 42 of file itkMultipleValuedVnlCostFunctionAdaptor.h. |
|
|
MeasureType of the MultipleValuedCostFunction Definition at line 51 of file itkMultipleValuedVnlCostFunctionAdaptor.h. |
|
|
Parameters of the MultipleValuedCostFunction Definition at line 54 of file itkMultipleValuedVnlCostFunctionAdaptor.h. |
|
|
Scales typedef Definition at line 60 of file itkMultipleValuedVnlCostFunctionAdaptor.h. |
|
||||||||||||
|
Constructor with size |
|
||||||||||||
|
This AddObserver method allows to simulate that this class derives from an itkObject for the purpose of reporting iteration events. The goal of this method is to allow ITK-vnl optimizer adaptors to get iteration events despite the fact that VNL does not provide callbacks. |
|
||||||||||||||||
|
Delegate computation of value and gradient to the costFunction. |
|
||||||||||||
|
Convert external derviative measures into internal type |
|
||||||||||||
|
Convert external measures into internal type |
|
|
|
|
||||||||||||
|
Delegate computation of the value to the CostFunction. |
|
|
|
|
|
|
|
|
Get the CostFunction deriving from MultipleValuedCostFunction Definition at line 71 of file itkMultipleValuedVnlCostFunctionAdaptor.h. |
|
|
|
|
||||||||||||
|
Delegate computation of the gradient to the costFunction. |
|
|
This method is intended to be called by the derived classes in order to notify of an iteration event to any Command/Observers |
|
|
Set the CostFunction deriving from MultipleValuedCostFunction Definition at line 67 of file itkMultipleValuedVnlCostFunctionAdaptor.h. |
|
|
Set current parameters scaling. |
|
|
Definition at line 102 of file itkMultipleValuedVnlCostFunctionAdaptor.h. |
|
|
Definition at line 101 of file itkMultipleValuedVnlCostFunctionAdaptor.h. |
|
|
Definition at line 117 of file itkMultipleValuedVnlCostFunctionAdaptor.h. |
1.4.2 written by Dimitri van Heesch,
© 1997-2000