ITK
4.8.0
Insight Segmentation and Registration Toolkit
|
#include <itkMultipleValuedVnlCostFunctionAdaptor.h>
This class is an Adaptor that allows to pass itk::MultipleValuedCostFunctions to vnl_optimizers expecting a vnl_cost_function.
This class returns a single valued.
Definition at line 37 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 |
Protected Member Functions | |
void | ReportIteration (const EventObject &event) const |
Private Member Functions | |
virtual const ScalesType & | GetInverseScales () const |
typedef MultipleValuedCostFunction::DerivativeType itk::MultipleValuedVnlCostFunctionAdaptor::DerivativeType |
Derivatives of the MultipleValuedCostFunction
Definition at line 58 of file itkMultipleValuedVnlCostFunctionAdaptor.h.
typedef vnl_matrix< double > itk::MultipleValuedVnlCostFunctionAdaptor::InternalDerivativeType |
InternalGradientType typedef.
Definition at line 49 of file itkMultipleValuedVnlCostFunctionAdaptor.h.
typedef vnl_vector< double > itk::MultipleValuedVnlCostFunctionAdaptor::InternalMeasureType |
InternalMeasureType typedef.
Definition at line 46 of file itkMultipleValuedVnlCostFunctionAdaptor.h.
typedef vnl_vector< double > itk::MultipleValuedVnlCostFunctionAdaptor::InternalParametersType |
InternalParametersType typedef.
Definition at line 43 of file itkMultipleValuedVnlCostFunctionAdaptor.h.
typedef MultipleValuedCostFunction::MeasureType itk::MultipleValuedVnlCostFunctionAdaptor::MeasureType |
MeasureType of the MultipleValuedCostFunction
Definition at line 52 of file itkMultipleValuedVnlCostFunctionAdaptor.h.
typedef MultipleValuedCostFunction::ParametersType itk::MultipleValuedVnlCostFunctionAdaptor::ParametersType |
Parameters of the MultipleValuedCostFunction
Definition at line 55 of file itkMultipleValuedVnlCostFunctionAdaptor.h.
typedef Array< double > itk::MultipleValuedVnlCostFunctionAdaptor::ScalesType |
Scales typedef
Definition at line 61 of file itkMultipleValuedVnlCostFunctionAdaptor.h.
itk::MultipleValuedVnlCostFunctionAdaptor::MultipleValuedVnlCostFunctionAdaptor | ( | unsigned int | spaceDimension, |
unsigned int | numberOfValues | ||
) |
Constructor with size
unsigned long itk::MultipleValuedVnlCostFunctionAdaptor::AddObserver | ( | const EventObject & | event, |
Command * | |||
) | const |
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.
|
virtual |
Delegate computation of value and gradient to the costFunction.
void itk::MultipleValuedVnlCostFunctionAdaptor::ConvertExternalToInternalGradient | ( | const DerivativeType & | input, |
InternalDerivativeType & | output | ||
) |
Convert external derviative measures into internal type
void itk::MultipleValuedVnlCostFunctionAdaptor::ConvertExternalToInternalMeasures | ( | const MeasureType & | input, |
InternalMeasureType & | output | ||
) |
Convert external measures into internal type
|
overridevirtual |
Delegate computation of the value to the CostFunction.
const ParametersType& itk::MultipleValuedVnlCostFunctionAdaptor::GetCachedCurrentParameters | ( | ) | const |
const DerivativeType& itk::MultipleValuedVnlCostFunctionAdaptor::GetCachedDerivative | ( | ) | const |
const MeasureType& itk::MultipleValuedVnlCostFunctionAdaptor::GetCachedValue | ( | ) | const |
|
inline |
Get the CostFunction deriving from MultipleValuedCostFunction
Definition at line 72 of file itkMultipleValuedVnlCostFunctionAdaptor.h.
|
privatevirtual |
Get current parameters scaling.
bool itk::MultipleValuedVnlCostFunctionAdaptor::GetUseGradient | ( | ) | const |
|
overridevirtual |
Delegate computation of the gradient to the costFunction.
|
protected |
This method is intended to be called by the derived classes in order to notify of an iteration event to any Command/Observers
|
inline |
Set the CostFunction deriving from MultipleValuedCostFunction
Definition at line 68 of file itkMultipleValuedVnlCostFunctionAdaptor.h.
void itk::MultipleValuedVnlCostFunctionAdaptor::SetScales | ( | const ScalesType & | scales | ) |
Set current parameters scaling.
void itk::MultipleValuedVnlCostFunctionAdaptor::SetUseGradient | ( | bool | ) |
Define if the Cost function should provide a customized Gradient computation or the gradient can be computed internally using a default approach
|
inline |
Definition at line 104 of file itkMultipleValuedVnlCostFunctionAdaptor.h.
|
inline |
Definition at line 103 of file itkMultipleValuedVnlCostFunctionAdaptor.h.
|
mutableprivate |
Definition at line 145 of file itkMultipleValuedVnlCostFunctionAdaptor.h.
|
mutableprivate |
Definition at line 144 of file itkMultipleValuedVnlCostFunctionAdaptor.h.
|
mutableprivate |
Definition at line 143 of file itkMultipleValuedVnlCostFunctionAdaptor.h.
|
private |
Definition at line 135 of file itkMultipleValuedVnlCostFunctionAdaptor.h.
|
private |
Definition at line 140 of file itkMultipleValuedVnlCostFunctionAdaptor.h.
|
private |
Definition at line 141 of file itkMultipleValuedVnlCostFunctionAdaptor.h.
|
private |
Definition at line 139 of file itkMultipleValuedVnlCostFunctionAdaptor.h.