ITK
4.3.0
Insight Segmentation and Registration Toolkit
|
#include <itkMultiStartOptimizerv4.h>
Multi-start searches over input parameters and returns the best metric value.
The multi-start algorithm performs gradient descent from N (large) number of starting points and returns the best solution. Ideal start points would sample the solution space almost uniformly, thus, in theory, this is a global optimizer. In this implementation, the quality of the optimization depends on the parameter space samples that the user inputs to the optimizer. Multi-start can be modified in numerous ways to improve robustness of standard approaches. These improvements usually focus modifying the parameter sample space. This is why we place the burden on the user to provide the parameter samples over which to optimize.
Definition at line 39 of file itkMultiStartOptimizerv4.h.
Static Public Member Functions | |
static Pointer | New () |
Protected Member Functions | |
virtual void | PrintSelf (std::ostream &os, Indent indent) const |
MultiStartOptimizerv4 () | |
virtual | ~MultiStartOptimizerv4 () |
Protected Member Functions inherited from itk::ObjectToObjectOptimizerBase | |
ObjectToObjectOptimizerBase () | |
virtual | ~ObjectToObjectOptimizerBase () |
Protected Member Functions inherited from itk::Object | |
Object () | |
bool | PrintObservers (std::ostream &os, Indent indent) const |
virtual void | SetTimeStamp (const TimeStamp &time) |
virtual | ~Object () |
Protected Member Functions inherited from itk::LightObject | |
virtual LightObject::Pointer | InternalClone () const |
LightObject () | |
virtual void | PrintHeader (std::ostream &os, Indent indent) const |
virtual void | PrintTrailer (std::ostream &os, Indent indent) const |
virtual | ~LightObject () |
Private Member Functions | |
MultiStartOptimizerv4 (const Self &) | |
void | operator= (const Self &) |
Additional Inherited Members | |
Protected Types inherited from itk::LightObject | |
typedef int | InternalReferenceCountType |
typedef SmartPointer< const Self > itk::MultiStartOptimizerv4::ConstPointer |
Definition at line 47 of file itkMultiStartOptimizerv4.h.
typedef MetricType::DerivativeType itk::MultiStartOptimizerv4::DerivativeType |
Derivative type
Definition at line 84 of file itkMultiStartOptimizerv4.h.
typedef Superclass::InternalComputationValueType itk::MultiStartOptimizerv4::InternalComputationValueType |
Internal computation type, for maintaining a desired precision
Definition at line 91 of file itkMultiStartOptimizerv4.h.
Definition at line 61 of file itkMultiStartOptimizerv4.h.
Definition at line 60 of file itkMultiStartOptimizerv4.h.
typedef Superclass::MeasureType itk::MultiStartOptimizerv4::MeasureType |
Measure type
Definition at line 87 of file itkMultiStartOptimizerv4.h.
typedef Superclass::MetricType itk::MultiStartOptimizerv4::MetricType |
Metric type over which this class is templated
Definition at line 80 of file itkMultiStartOptimizerv4.h.
typedef MetricType::Pointer itk::MultiStartOptimizerv4::MetricTypePointer |
Definition at line 81 of file itkMultiStartOptimizerv4.h.
typedef std::vector< MeasureType > itk::MultiStartOptimizerv4::MetricValuesListType |
Definition at line 88 of file itkMultiStartOptimizerv4.h.
Definition at line 59 of file itkMultiStartOptimizerv4.h.
Definition at line 58 of file itkMultiStartOptimizerv4.h.
typedef ParametersListType::size_type itk::MultiStartOptimizerv4::ParameterListSizeType |
Definition at line 57 of file itkMultiStartOptimizerv4.h.
typedef std::vector< ParametersType > itk::MultiStartOptimizerv4::ParametersListType |
Definition at line 56 of file itkMultiStartOptimizerv4.h.
typedef Superclass::ParametersType itk::MultiStartOptimizerv4::ParametersType |
Definition at line 53 of file itkMultiStartOptimizerv4.h.
typedef SmartPointer< Self > itk::MultiStartOptimizerv4::Pointer |
Definition at line 46 of file itkMultiStartOptimizerv4.h.
Standard class typedefs.
Definition at line 44 of file itkMultiStartOptimizerv4.h.
typedef std::ostringstream itk::MultiStartOptimizerv4::StopConditionDescriptionType |
Stop condition internal string type
Definition at line 77 of file itkMultiStartOptimizerv4.h.
typedef std::string itk::MultiStartOptimizerv4::StopConditionReturnStringType |
Stop condition return string type
Definition at line 74 of file itkMultiStartOptimizerv4.h.
Definition at line 45 of file itkMultiStartOptimizerv4.h.
Codes of stopping conditions.
MAXIMUM_NUMBER_OF_ITERATIONS | |
COSTFUNCTION_ERROR | |
UPDATE_PARAMETERS_ERROR | |
STEP_TOO_SMALL | |
CONVERGENCE_CHECKER_PASSED | |
OTHER_ERROR |
Definition at line 64 of file itkMultiStartOptimizerv4.h.
|
protected |
Default constructor
|
protectedvirtual |
Default constructor
|
private |
|
virtual |
Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.
Reimplemented from itk::Object.
ParametersType itk::MultiStartOptimizerv4::GetBestParameters | ( | ) |
Return the parameters from the best visited position
|
inline |
Definition at line 139 of file itkMultiStartOptimizerv4.h.
|
virtual |
Get the current iteration number.
|
virtual |
Set/Get the optimizer.
const MetricValuesListType& itk::MultiStartOptimizerv4::GetMetricValuesList | ( | ) | const |
Get the list of metric values that we produced after the multi-start search.
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::ObjectToObjectOptimizerBase.
|
virtual |
Get the number of iterations.
ParametersListType& itk::MultiStartOptimizerv4::GetParametersList | ( | ) |
Get the list of parameters over which to search.
|
virtual |
Get stop condition enum
|
virtual |
Get the reason for termination
void itk::MultiStartOptimizerv4::InstantiateLocalOptimizer | ( | void | ) |
Create an instance of the local optimizer
|
static |
Method for creation through the object factory.
|
private |
|
protectedvirtual |
Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from itk::ObjectToObjectOptimizerBase.
|
virtual |
Resume the optimization. Can be called after StopOptimization to resume. The bulk of the optimization work loop is here.
|
virtual |
Set/Get the optimizer.
|
virtual |
Set the number of iterations.
void itk::MultiStartOptimizerv4::SetParametersList | ( | ParametersListType & | p | ) |
Set the list of parameters over which to search
|
virtual |
Begin the optimization
Reimplemented from itk::ObjectToObjectOptimizerBase.
|
virtual |
Stop optimization. The object is left in a state so the optimization can be resumed by calling ResumeOptimization.
|
protected |
Definition at line 160 of file itkMultiStartOptimizerv4.h.
|
protected |
Definition at line 155 of file itkMultiStartOptimizerv4.h.
|
protected |
Definition at line 161 of file itkMultiStartOptimizerv4.h.
|
protected |
Definition at line 159 of file itkMultiStartOptimizerv4.h.
|
protected |
Definition at line 157 of file itkMultiStartOptimizerv4.h.
|
protected |
Definition at line 158 of file itkMultiStartOptimizerv4.h.
|
protected |
Definition at line 154 of file itkMultiStartOptimizerv4.h.
|
protected |
Definition at line 156 of file itkMultiStartOptimizerv4.h.
|
protected |
Definition at line 151 of file itkMultiStartOptimizerv4.h.
|
protected |
Definition at line 152 of file itkMultiStartOptimizerv4.h.
|
protected |
Definition at line 153 of file itkMultiStartOptimizerv4.h.