ITK
5.2.0
Insight Toolkit
|
#include <itkSingleValuedNonLinearVnlOptimizerv4.h>
This is a base for the ITKv4 Optimization methods using the vnl library.
It is an Adaptor class for optimizers provided by the vnl library.
Definition at line 38 of file itkSingleValuedNonLinearVnlOptimizerv4.h.
Command observer that will interact with the ITKVNL cost-function adaptor in order to generate iteration events. This will allow to overcome the limitation of VNL optimizers not offering callbacks for every iteration
Definition at line 56 of file itkSingleValuedNonLinearVnlOptimizerv4.h.
Definition at line 47 of file itkSingleValuedNonLinearVnlOptimizerv4.h.
|
protected |
Return Cached Values. These method have the advantage of not triggering a recomputation of the metric value, but it has the disadvantage of returning a value that may not be the one corresponding to the current parameters. For GUI update purposes, this method is a good option.
Definition at line 98 of file itkSingleValuedNonLinearVnlOptimizerv4.h.
using itk::SingleValuedNonLinearVnlOptimizerv4::DerivativeType = Superclass::DerivativeType |
Definition at line 59 of file itkSingleValuedNonLinearVnlOptimizerv4.h.
using itk::SingleValuedNonLinearVnlOptimizerv4::MetricType = Superclass::MetricType |
Definition at line 58 of file itkSingleValuedNonLinearVnlOptimizerv4.h.
using itk::SingleValuedNonLinearVnlOptimizerv4::ParametersType = Superclass::ParametersType |
Definition at line 60 of file itkSingleValuedNonLinearVnlOptimizerv4.h.
Definition at line 46 of file itkSingleValuedNonLinearVnlOptimizerv4.h.
using itk::SingleValuedNonLinearVnlOptimizerv4::ScalesType = Superclass::ScalesType |
Definition at line 61 of file itkSingleValuedNonLinearVnlOptimizerv4.h.
Standard class type aliases.
Definition at line 44 of file itkSingleValuedNonLinearVnlOptimizerv4.h.
using itk::SingleValuedNonLinearVnlOptimizerv4::StopConditionDescriptionType = Superclass::StopConditionDescriptionType |
Stop condition internal string type
Definition at line 67 of file itkSingleValuedNonLinearVnlOptimizerv4.h.
using itk::SingleValuedNonLinearVnlOptimizerv4::StopConditionReturnStringType = Superclass::StopConditionReturnStringType |
Stop condition return string type
Definition at line 64 of file itkSingleValuedNonLinearVnlOptimizerv4.h.
Definition at line 45 of file itkSingleValuedNonLinearVnlOptimizerv4.h.
|
protected |
Return Cached Values. These method have the advantage of not triggering a recomputation of the metric value, but it has the disadvantage of returning a value that may not be the one corresponding to the current parameters. For GUI update purposes, this method is a good option.
|
overrideprotected |
Return Cached Values. These method have the advantage of not triggering a recomputation of the metric value, but it has the disadvantage of returning a value that may not be the one corresponding to the current parameters. For GUI update purposes, this method is a good option.
|
virtual |
Return Cached Values. These method have the advantage of not triggering a recomputation of the metric value, but it has the disadvantage of returning a value that may not be the one corresponding to the current parameters. For GUI update purposes, this method is a good option.
|
virtual |
Return Cached Values. These method have the advantage of not triggering a recomputation of the metric value, but it has the disadvantage of returning a value that may not be the one corresponding to the current parameters. For GUI update purposes, this method is a good option.
|
protected |
Return Cached Values. These method have the advantage of not triggering a recomputation of the metric value, but it has the disadvantage of returning a value that may not be the one corresponding to the current parameters. For GUI update purposes, this method is a good option.
|
protected |
Return Cached Values. These method have the advantage of not triggering a recomputation of the metric value, but it has the disadvantage of returning a value that may not be the one corresponding to the current parameters. For GUI update purposes, this method is a good option.
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::ObjectToObjectOptimizerBaseTemplate< double >.
Reimplemented in itk::LBFGSOptimizerv4, itk::LBFGSOptimizerBasev4< TInternalVnlOptimizerType >, itk::LBFGSOptimizerBasev4< vnl_lbfgs >, itk::LBFGSOptimizerBasev4< vnl_lbfgsb >, itk::LBFGSBOptimizerv4, and itk::AmoebaOptimizerv4.
|
protected |
The purpose of this method is to get around the lack of const-correctness in VNL cost-functions and optimizers
|
overridepure virtual |
Get the reason for termination
Implements itk::ObjectToObjectOptimizerBaseTemplate< double >.
Implemented in itk::AmoebaOptimizerv4, itk::LBFGSOptimizerBasev4< TInternalVnlOptimizerType >, itk::LBFGSOptimizerBasev4< vnl_lbfgs >, and itk::LBFGSOptimizerBasev4< vnl_lbfgsb >.
|
private |
The purpose of this method is to get around the lack of iteration reporting in VNL optimizers. By interfacing directly with the ITK cost function adaptor we are generating here Iteration Events. Note the iteration events here are produce PER EVALUATION of the metric, not per real iteration of the vnl optimizer. Optimizers that evaluate the metric multiple times at each iteration will generate a lot more of Iteration events here.
|
overrideprotectedvirtual |
Print out internal state
Reimplemented from itk::Object.
Reimplemented in itk::LBFGSOptimizerBasev4< vnl_lbfgs >, and itk::LBFGSOptimizerBasev4< vnl_lbfgsb >.
|
protected |
Return Cached Values. These method have the advantage of not triggering a recomputation of the metric value, but it has the disadvantage of returning a value that may not be the one corresponding to the current parameters. For GUI update purposes, this method is a good option.
|
overridepure virtual |
Set the metric (cost function). This method has to be overloaded by derived classes because the CostFunctionAdaptor requires to know the number of parameters at construction time. This number of parameters is obtained at run-time from the itkObjectToObjectMetric. As a consequence each derived optimizer should construct its own CostFunctionAdaptor when overloading this method
Implemented in itk::LBFGSBOptimizerv4, itk::LBFGSOptimizerv4, itk::LBFGSOptimizerBasev4< TInternalVnlOptimizerType >, itk::LBFGSOptimizerBasev4< vnl_lbfgs >, itk::LBFGSOptimizerBasev4< vnl_lbfgsb >, and itk::AmoebaOptimizerv4.
|
overridevirtual |
Run the optimization.
doOnlyInitialization | This is false by default. It should only be set to true for special cases when the class should be initialized to perform optimization, but no optimization should be run. For example, itkMultiGradientOptimizerv4 needs to do this. |
Reimplemented from itk::ObjectToObjectOptimizerBaseTemplate< double >.
Reimplemented in itk::LBFGSOptimizerBasev4< vnl_lbfgs >, and itk::LBFGSOptimizerBasev4< vnl_lbfgsb >.
|
mutableprivate |
Return Cached Values. These method have the advantage of not triggering a recomputation of the metric value, but it has the disadvantage of returning a value that may not be the one corresponding to the current parameters. For GUI update purposes, this method is a good option.
Definition at line 132 of file itkSingleValuedNonLinearVnlOptimizerv4.h.
|
mutableprivate |
Return Cached Values. These method have the advantage of not triggering a recomputation of the metric value, but it has the disadvantage of returning a value that may not be the one corresponding to the current parameters. For GUI update purposes, this method is a good option.
Definition at line 133 of file itkSingleValuedNonLinearVnlOptimizerv4.h.
|
private |
Return Cached Values. These method have the advantage of not triggering a recomputation of the metric value, but it has the disadvantage of returning a value that may not be the one corresponding to the current parameters. For GUI update purposes, this method is a good option.
Definition at line 130 of file itkSingleValuedNonLinearVnlOptimizerv4.h.
|
private |
Return Cached Values. These method have the advantage of not triggering a recomputation of the metric value, but it has the disadvantage of returning a value that may not be the one corresponding to the current parameters. For GUI update purposes, this method is a good option.
Definition at line 128 of file itkSingleValuedNonLinearVnlOptimizerv4.h.