Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages |
#include <elxRegularStepGradientDescent.h>
An optimizer based on gradient descent...
This optimizer is a wrap around the itk::RegularStepGradientDescentOptimizer. This wrap-around class takes care of setting parameters, and printing progress information. For detailed information about the optimisation method, please read the documentation of the itkRegularStepGradientDescentOptimizer (in the ITK-manual).
The parameters used in this class are:
Optimizer: Select this optimizer as follows:
(Optimizer "RegularStepGradientDescent")
MaximumNumberOfIterations: the maximum number of iterations in each resolution.
example: (MaximumNumberOfIterations 100 100 50)
Default value: 500.
MinimumGradientMagnitude: stopping criterion. If the magnitude of the derivative of the cost function is below this value, optimisation is stopped.
example: (MinimumGradientMagnitude 0.0001 0.0001 0.001)
Default value: 1e-8.
MinimumStepLength: stopping criterion. If the steplength is below this value, optimisation is stopped.
example: (MinimumStepLength 1.0 0.5 0.1)
Default value: 0.5 / 2^resolutionlevel
MaximumStepLength: the starting steplength.
example: (MaximumStepLength 16.0 8.0 4.0)
Default value: 16 / 2^resolutionlevel.
RelaxationFactor: the factor with which the steplength is multiplied, if the optimiser notices that a smaller steplength is needed.
example: (RelaxationFactor 0.5 0.5 0.8 )
.
Default/recommended value: 0.5.
Definition at line 65 of file elxRegularStepGradientDescent.h.
Public Member Functions | |
void | AfterEachIteration (void) override |
void | AfterEachResolution (void) override |
void | AfterRegistration (void) override |
void | BeforeEachResolution (void) override |
void | BeforeRegistration (void) override |
elxClassNameMacro ("RegularStepGradientDescent") | |
virtual const char * | GetClassName () const |
void | SetInitialPosition (const ParametersType ¶m) override |
Public Member Functions inherited from elastix::OptimizerBase< TElastix > | |
void | AfterRegistrationBase (void) override |
void | BeforeEachResolutionBase () override |
virtual ITKBaseType * | GetAsITKBaseType (void) |
virtual const ITKBaseType * | GetAsITKBaseType (void) const |
virtual const char * | GetClassName () const |
virtual void | SetCurrentPositionPublic (const ParametersType ¶m) |
virtual void | SetSinusScales (double amplitude, double frequency, unsigned long numberOfParameters) |
Public Member Functions inherited from elastix::BaseComponentSE< TElastix > | |
ConfigurationType * | GetConfiguration (void) const |
ElastixType * | GetElastix (void) const |
RegistrationPointer | GetRegistration (void) const |
ITK_DISALLOW_COPY_AND_ASSIGN (BaseComponentSE) | |
void | SetConfiguration (ConfigurationType *_arg) |
void | SetElastix (ElastixType *_arg) |
Public Member Functions inherited from elastix::BaseComponent | |
virtual void | AfterEachIteration (void) |
virtual void | AfterEachIterationBase (void) |
virtual void | AfterEachResolution (void) |
virtual void | AfterEachResolutionBase (void) |
virtual void | AfterRegistration (void) |
virtual void | AfterRegistrationBase (void) |
virtual int | BeforeAll (void) |
virtual int | BeforeAllBase (void) |
virtual void | BeforeEachResolution (void) |
virtual void | BeforeEachResolutionBase (void) |
virtual void | BeforeRegistration (void) |
virtual void | BeforeRegistrationBase (void) |
virtual const char * | elxGetClassName (void) const |
const char * | GetComponentLabel (void) const |
ITK_DISALLOW_COPY_AND_ASSIGN (BaseComponent) | |
itkTypeMacroNoParent (BaseComponent) | |
void | SetComponentLabel (const char *label, unsigned int idx) |
Static Public Member Functions | |
static Pointer | New () |
Static Public Member Functions inherited from elastix::BaseComponent | |
static std::string | ConvertSecondsToDHMS (const double totalSeconds, const unsigned int precision) |
static void | InitializeElastixExecutable () |
static bool | IsElastixLibrary () |
Protected Member Functions | |
RegularStepGradientDescent () | |
~RegularStepGradientDescent () override | |
Protected Member Functions inherited from elastix::OptimizerBase< TElastix > | |
virtual bool | GetNewSamplesEveryIteration (void) const |
OptimizerBase () | |
virtual void | SelectNewSamples (void) |
~OptimizerBase () override | |
Protected Member Functions inherited from elastix::BaseComponentSE< TElastix > | |
BaseComponentSE ()=default | |
~BaseComponentSE () override=default | |
Protected Member Functions inherited from elastix::BaseComponent | |
BaseComponent ()=default | |
virtual | ~BaseComponent ()=default |
Private Member Functions | |
void | operator= (const Self &) |
RegularStepGradientDescent (const Self &) | |
Additional Inherited Members | |
Protected Attributes inherited from elastix::BaseComponentSE< TElastix > | |
ConfigurationPointer | m_Configuration {} |
ElastixPointer | m_Elastix {} |
RegistrationPointer | m_Registration {} |
typedef Superclass2::ConfigurationPointer elastix::RegularStepGradientDescent< TElastix >::ConfigurationPointer |
Definition at line 100 of file elxRegularStepGradientDescent.h.
typedef Superclass2::ConfigurationType elastix::RegularStepGradientDescent< TElastix >::ConfigurationType |
Definition at line 99 of file elxRegularStepGradientDescent.h.
typedef itk::SmartPointer< const Self > elastix::RegularStepGradientDescent< TElastix >::ConstPointer |
Definition at line 78 of file elxRegularStepGradientDescent.h.
typedef Superclass1::CostFunctionPointer elastix::RegularStepGradientDescent< TElastix >::CostFunctionPointer |
Definition at line 94 of file elxRegularStepGradientDescent.h.
typedef Superclass1::CostFunctionType elastix::RegularStepGradientDescent< TElastix >::CostFunctionType |
Typedef's inherited from Superclass1.
Definition at line 93 of file elxRegularStepGradientDescent.h.
typedef Superclass2::ElastixPointer elastix::RegularStepGradientDescent< TElastix >::ElastixPointer |
Definition at line 98 of file elxRegularStepGradientDescent.h.
typedef Superclass2::ElastixType elastix::RegularStepGradientDescent< TElastix >::ElastixType |
Typedef's inherited from Elastix.
Definition at line 97 of file elxRegularStepGradientDescent.h.
typedef Superclass2::ITKBaseType elastix::RegularStepGradientDescent< TElastix >::ITKBaseType |
Definition at line 103 of file elxRegularStepGradientDescent.h.
typedef Superclass1::ParametersType elastix::RegularStepGradientDescent< TElastix >::ParametersType |
Typedef for the ParametersType.
Definition at line 106 of file elxRegularStepGradientDescent.h.
typedef itk::SmartPointer< Self > elastix::RegularStepGradientDescent< TElastix >::Pointer |
Definition at line 77 of file elxRegularStepGradientDescent.h.
typedef Superclass2::RegistrationPointer elastix::RegularStepGradientDescent< TElastix >::RegistrationPointer |
Definition at line 102 of file elxRegularStepGradientDescent.h.
typedef Superclass2::RegistrationType elastix::RegularStepGradientDescent< TElastix >::RegistrationType |
Definition at line 101 of file elxRegularStepGradientDescent.h.
typedef RegularStepGradientDescent elastix::RegularStepGradientDescent< TElastix >::Self |
Standard ITK.
Definition at line 74 of file elxRegularStepGradientDescent.h.
typedef RegularStepGradientDescentOptimizer elastix::RegularStepGradientDescent< TElastix >::Superclass1 |
Definition at line 75 of file elxRegularStepGradientDescent.h.
typedef OptimizerBase< TElastix > elastix::RegularStepGradientDescent< TElastix >::Superclass2 |
Definition at line 76 of file elxRegularStepGradientDescent.h.
|
inlineprotected |
Definition at line 128 of file elxRegularStepGradientDescent.h.
|
inlineoverrideprotected |
Definition at line 129 of file elxRegularStepGradientDescent.h.
|
private |
|
overridevirtual |
Reimplemented from elastix::BaseComponent.
|
overridevirtual |
Reimplemented from elastix::BaseComponent.
|
overridevirtual |
Reimplemented from elastix::BaseComponent.
|
overridevirtual |
Reimplemented from elastix::BaseComponent.
|
overridevirtual |
Methods invoked by elastix, in which parameters can be set and progress information can be printed.
Reimplemented from elastix::BaseComponent.
elastix::RegularStepGradientDescent< TElastix >::elxClassNameMacro | ( | "RegularStepGradientDescent< TElastix >" | ) |
Name of this class. Use this name in the parameter file to select this specific optimizer.
example: (Optimizer "RegularStepGradientDescent")
|
virtual |
Run-time type information (and related methods).
Reimplemented from elastix::OptimizerBase< TElastix >.
|
static |
Method for creation through the object factory.
|
private |
|
override |
Override the SetInitialPosition. Override the implementation in itkOptimizer.h, to ensure that the scales array and the parameters array have the same size.
Generated on 1667476801 for elastix by 1.9.4 |