#include <itkSingleValuedVnlCostFunctionAdaptor.h>
Collaboration diagram for itk::SingleValuedVnlCostFunctionAdaptor:

This class returns a single valued.
Optimizers
Definition at line 36 of file itkSingleValuedVnlCostFunctionAdaptor.h.
Public Types | |
| typedef SingleValuedCostFunction::DerivativeType | DerivativeType |
| typedef vnl_vector< double > | InternalDerivativeType |
| typedef double | InternalMeasureType |
| typedef vnl_vector< double > | InternalParametersType |
| typedef SingleValuedCostFunction::MeasureType | MeasureType |
| typedef SingleValuedCostFunction::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) const |
| 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 |
| Set Get Negate cost function The purpose of this boolean flag is to make *possible to take certain VNL optimizers that are only and use *them for maximizing functions When the boolean flag is set to the *values returned by GetValue in the internal ITK cost function will be *multiplied by before returning it in the | f () function.Similar *operations will be done for the gradf() and compute() methods.When the *boolean flag is set to false |
| virtual InternalMeasureType | f (const InternalParametersType &inparameters) |
| const ParametersType & | GetCachedCurrentParameters () const |
| const DerivativeType & | GetCachedDerivative () const |
| const SingleValuedCostFunction * | GetCostFunction (void) const |
| bool | GetNegateCostFunction () const |
| virtual void | gradf (const InternalParametersType &inparameters, InternalDerivativeType &gradient) |
| void | NegateCostFunctionOff () |
| void | NegateCostFunctionOn () |
| void | SetCostFunction (SingleValuedCostFunction *costFunction) |
| Set Get Negate cost function The purpose of this boolean flag is to make *possible to take certain VNL optimizers that are only and use *them for maximizing functions When the boolean flag is set to the *values returned by GetValue in the internal ITK cost function will be *multiplied by before returning it in the then the values returned by the ITK cost *function will be passed unchanged to the VNL optimizers *void | SetNegateCostFunction (bool value) |
| void | SetScales (const ScalesType &scales) |
| SingleValuedVnlCostFunctionAdaptor (unsigned int spaceDimension) | |
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 |
| Set Get Negate cost function The purpose of this boolean flag is to make *possible to take certain VNL optimizers that are only | minimizers |
| Set Get Negate cost function The purpose of this boolean flag is to make *possible to take certain VNL optimizers that are only and use *them for maximizing functions When the boolean flag is set to | true |
Protected Member Functions | |
| void | ReportIteration (const EventObject &event) const |
|
|
Derivatives of the SingleValuedCostFunction Definition at line 54 of file itkSingleValuedVnlCostFunctionAdaptor.h. |
|
|
InternalGradientType typedef. Definition at line 48 of file itkSingleValuedVnlCostFunctionAdaptor.h. |
|
|
InternalMeasureType typedef. Definition at line 45 of file itkSingleValuedVnlCostFunctionAdaptor.h. |
|
|
InternalParametersType typedef. Definition at line 42 of file itkSingleValuedVnlCostFunctionAdaptor.h. |
|
|
Type of the SingleValuedCostFunction value Definition at line 57 of file itkSingleValuedVnlCostFunctionAdaptor.h. |
|
|
Parameters of the SingleValuedCostFunction Definition at line 51 of file itkSingleValuedVnlCostFunctionAdaptor.h. |
|
|
Scales typedef Definition at line 60 of file itkSingleValuedVnlCostFunctionAdaptor.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 |
|
|
|
|
|
|
|
|
Delegate computation of the value to the CostFunction. |
|
|
|
|
|
|
|
|
Get the CostFunction deriving from SingleValuedCostFunction Definition at line 71 of file itkSingleValuedVnlCostFunctionAdaptor.h. |
|
|
|
|
||||||||||||
|
Delegate computation of the gradient to the costFunction. |
|
|
Definition at line 106 of file itkSingleValuedVnlCostFunctionAdaptor.h. |
|
|
Definition at line 105 of file itkSingleValuedVnlCostFunctionAdaptor.h. |
|
|
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 SingleValuedCostFunction Definition at line 67 of file itkSingleValuedVnlCostFunctionAdaptor.h. |
|
|
|
|
|
Set current parameters scaling. |
|
|
Definition at line 117 of file itkSingleValuedVnlCostFunctionAdaptor.h. |
|
|
Definition at line 96 of file itkSingleValuedVnlCostFunctionAdaptor.h. |
|
|
Definition at line 96 of file itkSingleValuedVnlCostFunctionAdaptor.h. |
1.4.2 written by Dimitri van Heesch,
© 1997-2000