ITK
4.1.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.
typedef SmartPointer< const Self > itk::MultiStartOptimizerv4::ConstPointer |
Reimplemented from itk::ObjectToObjectOptimizerBase.
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
Reimplemented from itk::ObjectToObjectOptimizerBase.
Definition at line 91 of file itkMultiStartOptimizerv4.h.
Definition at line 61 of file itkMultiStartOptimizerv4.h.
Definition at line 60 of file itkMultiStartOptimizerv4.h.
Measure type
Reimplemented from itk::ObjectToObjectOptimizerBase.
Definition at line 87 of file itkMultiStartOptimizerv4.h.
Metric type over which this class is templated
Reimplemented from itk::ObjectToObjectOptimizerBase.
Definition at line 80 of file itkMultiStartOptimizerv4.h.
typedef MetricType::Pointer itk::MultiStartOptimizerv4::MetricTypePointer |
Reimplemented from itk::ObjectToObjectOptimizerBase.
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.
Parameters type.
Reimplemented from itk::ObjectToObjectOptimizerBase.
Definition at line 53 of file itkMultiStartOptimizerv4.h.
typedef SmartPointer< Self > itk::MultiStartOptimizerv4::Pointer |
Reimplemented from itk::ObjectToObjectOptimizerBase.
Definition at line 46 of file itkMultiStartOptimizerv4.h.
Standard class typedefs.
Reimplemented from itk::ObjectToObjectOptimizerBase.
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.
Reimplemented from itk::ObjectToObjectOptimizerBase.
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.
itk::MultiStartOptimizerv4::MultiStartOptimizerv4 | ( | ) | [protected] |
Default constructor
virtual itk::MultiStartOptimizerv4::~MultiStartOptimizerv4 | ( | ) | [protected, virtual] |
Default constructor
itk::MultiStartOptimizerv4::MultiStartOptimizerv4 | ( | const Self & | ) | [private] |
virtual::itk::LightObject::Pointer itk::MultiStartOptimizerv4::CreateAnother | ( | void | ) | const [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.
Return the parameters from the best visited position
Definition at line 139 of file itkMultiStartOptimizerv4.h.
virtual SizeValueType itk::MultiStartOptimizerv4::GetCurrentIteration | ( | ) | const [virtual] |
Get the current iteration number.
virtual OptimizerType* itk::MultiStartOptimizerv4::GetLocalOptimizer | ( | ) | [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 const char* itk::MultiStartOptimizerv4::GetNameOfClass | ( | ) | const [virtual] |
Run-time type information (and related methods).
Reimplemented from itk::ObjectToObjectOptimizerBase.
virtual const SizeValueType& itk::MultiStartOptimizerv4::GetNumberOfIterations | ( | ) | [virtual] |
Get the number of iterations.
Get the list of parameters over which to search.
virtual const StopConditionType& itk::MultiStartOptimizerv4::GetStopCondition | ( | ) | [virtual] |
Get stop condition enum
virtual const StopConditionReturnStringType itk::MultiStartOptimizerv4::GetStopConditionDescription | ( | ) | const [virtual] |
Get the reason for termination
void itk::MultiStartOptimizerv4::InstantiateLocalOptimizer | ( | void | ) |
Create an instance of the local optimizer
static Pointer itk::MultiStartOptimizerv4::New | ( | ) | [static] |
Method for creation through the object factory.
Reimplemented from itk::Object.
void itk::MultiStartOptimizerv4::operator= | ( | const Self & | ) | [private] |
Mutex lock to protect modification to the reference count
Reimplemented from itk::ObjectToObjectOptimizerBase.
virtual void itk::MultiStartOptimizerv4::PrintSelf | ( | std::ostream & | os, |
Indent | indent | ||
) | const [protected, virtual] |
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 void itk::MultiStartOptimizerv4::ResumeOptimization | ( | ) | [virtual] |
Resume the optimization. Can be called after StopOptimization to resume. The bulk of the optimization work loop is here.
virtual void itk::MultiStartOptimizerv4::SetLocalOptimizer | ( | OptimizerType * | _arg | ) | [virtual] |
Set/Get the optimizer.
virtual void itk::MultiStartOptimizerv4::SetNumberOfIterations | ( | SizeValueType | _arg | ) | [virtual] |
Set the number of iterations.
Set the list of parameters over which to search
virtual void itk::MultiStartOptimizerv4::StartOptimization | ( | void | ) | [virtual] |
Begin the optimization
Reimplemented from itk::ObjectToObjectOptimizerBase.
virtual void itk::MultiStartOptimizerv4::StopOptimization | ( | void | ) | [virtual] |
Stop optimization. The object is left in a state so the optimization can be resumed by calling ResumeOptimization.
Definition at line 160 of file itkMultiStartOptimizerv4.h.
Definition at line 155 of file itkMultiStartOptimizerv4.h.
Definition at line 161 of file itkMultiStartOptimizerv4.h.
Definition at line 159 of file itkMultiStartOptimizerv4.h.
Definition at line 157 of file itkMultiStartOptimizerv4.h.
Definition at line 158 of file itkMultiStartOptimizerv4.h.
Definition at line 154 of file itkMultiStartOptimizerv4.h.
Definition at line 156 of file itkMultiStartOptimizerv4.h.
bool itk::MultiStartOptimizerv4::m_Stop [protected] |
Definition at line 151 of file itkMultiStartOptimizerv4.h.
Definition at line 152 of file itkMultiStartOptimizerv4.h.
Definition at line 153 of file itkMultiStartOptimizerv4.h.