![]() |
Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages |
#include <elxQuasiNewtonLBFGS.h>
Public Member Functions | |
virtual void | AfterEachIteration (void) |
virtual void | AfterEachResolution (void) |
virtual void | AfterRegistration (void) |
virtual void | BeforeEachResolution (void) |
virtual void | BeforeRegistration (void) |
elxClassNameMacro ("QuasiNewtonLBFGS") | |
virtual const char * | GetClassName () const |
virtual bool | GetStartLineSearch () const |
virtual void | StartOptimization (void) |
![]() | |
virtual const DerivativeType & | GetCurrentGradient () |
virtual unsigned long | GetCurrentIteration () const |
virtual double | GetCurrentStepLength () const |
virtual MeasureType | GetCurrentValue () const |
virtual double | GetGradientMagnitudeTolerance () const |
virtual bool | GetInLineSearch () const |
virtual LineSearchOptimizerType * | GetLineSearchOptimizer () |
virtual unsigned long | GetMaximumNumberOfIterations () const |
virtual unsigned int | GetMemory () const |
virtual const StopConditionType & | GetStopCondition () |
virtual void | ResumeOptimization (void) |
virtual void | SetGradientMagnitudeTolerance (double _arg) |
virtual void | SetLineSearchOptimizer (LineSearchOptimizerType *_arg) |
virtual void | SetMaximumNumberOfIterations (unsigned long _arg) |
virtual void | SetMemory (unsigned int _arg) |
virtual void | StopOptimization (void) |
![]() | |
virtual const ParametersType & | GetCurrentPosition (void) const |
virtual bool | GetMaximize () const |
virtual const ScaledCostFunctionType * | GetScaledCostFunction () |
virtual const ParametersType & | GetScaledCurrentPosition () |
bool | GetUseScales (void) const |
virtual void | InitializeScales (void) |
virtual void | MaximizeOff () |
virtual void | MaximizeOn () |
virtual void | SetCostFunction (CostFunctionType *costFunction) |
virtual void | SetMaximize (bool _arg) |
virtual void | SetUseScales (bool arg) |
![]() | |
virtual void | BeforeEachResolutionBase () |
virtual ITKBaseType * | GetAsITKBaseType (void) |
virtual const ITKBaseType * | GetAsITKBaseType (void) const |
virtual void | SetCurrentPositionPublic (const ParametersType ¶m) |
virtual void | SetSinusScales (double amplitude, double frequency, unsigned long numberOfParameters) |
![]() | |
virtual ConfigurationType * | GetConfiguration (void) const |
virtual ElastixType * | GetElastix (void) const |
virtual RegistrationPointer | GetRegistration (void) const |
virtual void | SetConfiguration (ConfigurationType *_arg) |
virtual void | SetElastix (ElastixType *_arg) |
![]() | |
virtual void | AfterEachIterationBase (void) |
virtual void | AfterEachResolutionBase (void) |
virtual void | AfterRegistrationBase (void) |
virtual int | BeforeAll (void) |
virtual int | BeforeAllBase (void) |
virtual void | BeforeRegistrationBase (void) |
virtual const char * | elxGetClassName (void) const |
virtual const char * | GetComponentLabel (void) const |
virtual void | SetComponentLabel (const char *label, unsigned int idx) |
Static Public Member Functions | |
static Pointer | New () |
Protected Attributes | |
LineOptimizerPointer | m_LineOptimizer |
![]() | |
unsigned int | m_Bound |
DerivativeType | m_CurrentGradient |
unsigned long | m_CurrentIteration |
double | m_CurrentStepLength |
MeasureType | m_CurrentValue |
bool | m_InLineSearch |
unsigned int | m_Point |
unsigned int | m_PreviousPoint |
RhoType | m_Rho |
SType | m_S |
bool | m_Stop |
StopConditionType | m_StopCondition |
YType | m_Y |
![]() | |
ScaledCostFunctionPointer | m_ScaledCostFunction |
ParametersType | m_ScaledCurrentPosition |
Private Member Functions | |
void | InvokeIterationEvent (const EventObject &event) |
void | operator= (const Self &) |
QuasiNewtonLBFGS (const Self &) |
An optimizer based on the itk::QuasiNewtonLBFGSOptimizer.
The QuasiNewtonLBFGS class is a wrap around the QuasiNewtonLBFGSOptimizer. It uses the itk::MoreThuenteLineSearchOptimizer. Please read the documentation of these classes to find out more about it.
This optimizer supports the NewSamplesEveryIteration option. It requests new samples for the computation of each search direction (not during the line search). Actually this makes no sense for a QuasiNewton optimizer. So, think twice before using the NewSamplesEveryIteration option.
The parameters used in this class are:
(Optimizer "QuasiNewtonLBFGS")
(GenerateLineSearchIterations "true")
(MaximumNumberOfIterations 100 100 50)
(MaximumNumberOfLineSearchIterations 10 10 5)
(StepLength 2.0 1.0 0.5)
(LineSearchValueTolerance 0.0001 0.0001 0.0001)
(LineSearchGradientTolerance 0.9 0.9 0.9)
(GradientMagnitudeTolerance 0.001 0.0001 0.000001)
(LBFGSUpdateAccuracy 5 10 20)
(StopIfWolfeNotSatisfied "true" "false")
Definition at line 87 of file elxQuasiNewtonLBFGS.h.
typedef Superclass2::ConfigurationPointer elastix::QuasiNewtonLBFGS< TElastix >::ConfigurationPointer |
Definition at line 126 of file elxQuasiNewtonLBFGS.h.
typedef Superclass2::ConfigurationType elastix::QuasiNewtonLBFGS< TElastix >::ConfigurationType |
Definition at line 125 of file elxQuasiNewtonLBFGS.h.
typedef SmartPointer<const Self> elastix::QuasiNewtonLBFGS< TElastix >::ConstPointer |
Definition at line 100 of file elxQuasiNewtonLBFGS.h.
typedef Superclass1::CostFunctionPointer elastix::QuasiNewtonLBFGS< TElastix >::CostFunctionPointer |
Definition at line 116 of file elxQuasiNewtonLBFGS.h.
typedef Superclass1::CostFunctionType elastix::QuasiNewtonLBFGS< TElastix >::CostFunctionType |
Typedef's inherited from Superclass1.
Definition at line 115 of file elxQuasiNewtonLBFGS.h.
typedef Superclass1::DerivativeType elastix::QuasiNewtonLBFGS< TElastix >::DerivativeType |
Definition at line 119 of file elxQuasiNewtonLBFGS.h.
typedef Superclass2::ElastixPointer elastix::QuasiNewtonLBFGS< TElastix >::ElastixPointer |
Definition at line 124 of file elxQuasiNewtonLBFGS.h.
typedef Superclass2::ElastixType elastix::QuasiNewtonLBFGS< TElastix >::ElastixType |
Typedef's inherited from Elastix.
Definition at line 123 of file elxQuasiNewtonLBFGS.h.
typedef EventPassThroughType::Pointer elastix::QuasiNewtonLBFGS< TElastix >::EventPassThroughPointer |
Definition at line 135 of file elxQuasiNewtonLBFGS.h.
typedef ReceptorMemberCommand<Self> elastix::QuasiNewtonLBFGS< TElastix >::EventPassThroughType |
Definition at line 134 of file elxQuasiNewtonLBFGS.h.
typedef Superclass2::ITKBaseType elastix::QuasiNewtonLBFGS< TElastix >::ITKBaseType |
Definition at line 129 of file elxQuasiNewtonLBFGS.h.
typedef LineOptimizerType::Pointer elastix::QuasiNewtonLBFGS< TElastix >::LineOptimizerPointer |
Definition at line 133 of file elxQuasiNewtonLBFGS.h.
typedef MoreThuenteLineSearchOptimizer elastix::QuasiNewtonLBFGS< TElastix >::LineOptimizerType |
Extra typedefs
Definition at line 132 of file elxQuasiNewtonLBFGS.h.
typedef Superclass1::ParametersType elastix::QuasiNewtonLBFGS< TElastix >::ParametersType |
Definition at line 118 of file elxQuasiNewtonLBFGS.h.
typedef SmartPointer<Self> elastix::QuasiNewtonLBFGS< TElastix >::Pointer |
Definition at line 99 of file elxQuasiNewtonLBFGS.h.
typedef Superclass2::RegistrationPointer elastix::QuasiNewtonLBFGS< TElastix >::RegistrationPointer |
Definition at line 128 of file elxQuasiNewtonLBFGS.h.
typedef Superclass2::RegistrationType elastix::QuasiNewtonLBFGS< TElastix >::RegistrationType |
Definition at line 127 of file elxQuasiNewtonLBFGS.h.
typedef Superclass1::ScalesType elastix::QuasiNewtonLBFGS< TElastix >::ScalesType |
Definition at line 120 of file elxQuasiNewtonLBFGS.h.
typedef QuasiNewtonLBFGS elastix::QuasiNewtonLBFGS< TElastix >::Self |
Standard ITK.
Definition at line 96 of file elxQuasiNewtonLBFGS.h.
typedef Superclass1::StopConditionType elastix::QuasiNewtonLBFGS< TElastix >::StopConditionType |
Definition at line 117 of file elxQuasiNewtonLBFGS.h.
typedef QuasiNewtonLBFGSOptimizer elastix::QuasiNewtonLBFGS< TElastix >::Superclass1 |
Definition at line 97 of file elxQuasiNewtonLBFGS.h.
typedef OptimizerBase<TElastix> elastix::QuasiNewtonLBFGS< TElastix >::Superclass2 |
Definition at line 98 of file elxQuasiNewtonLBFGS.h.
|
protected |
|
inlineprotectedvirtual |
Definition at line 155 of file elxQuasiNewtonLBFGS.h.
|
private |
|
virtual |
Reimplemented from elastix::BaseComponent.
|
virtual |
Reimplemented from elastix::BaseComponent.
|
virtual |
Reimplemented from elastix::BaseComponent.
|
virtual |
Reimplemented from elastix::BaseComponent.
|
virtual |
Methods to set parameters and print output at different stages in the registration process.
Reimplemented from elastix::BaseComponent.
|
protectedvirtual |
Generate a string, representing the phase of optimisation (line search, main)
elastix::QuasiNewtonLBFGS< TElastix >::elxClassNameMacro | ( | "QuasiNewtonLBFGS< TElastix >" | ) |
Name of this class. Use this name in the parameter file to select this specific optimizer.
example: (Optimizer "QuasiNewtonLBFGS")
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::QuasiNewtonLBFGSOptimizer.
|
protectedvirtual |
Convert the line search stop condition to a string
|
virtual |
|
private |
|
protectedvirtual |
Call the superclass' implementation. If an ExceptionObject is caught, because the line search optimizer tried a too big step, the exception is printed, but ignored further. The optimizer stops, but elastix just goes on to the next resolution.
Reimplemented from itk::QuasiNewtonLBFGSOptimizer.
|
static |
Method for creation through the object factory.
Reimplemented from itk::QuasiNewtonLBFGSOptimizer.
|
private |
|
virtual |
Check if any scales are set, and set the UseScales flag on or off; after that call the superclass' implementation
Reimplemented from itk::QuasiNewtonLBFGSOptimizer.
|
protectedvirtual |
Reimplement the superclass. Calls the superclass' implementation and checks if the MoreThuente line search routine has stopped with Wolfe conditions satisfied.
Reimplemented from itk::QuasiNewtonLBFGSOptimizer.
|
private |
Definition at line 189 of file elxQuasiNewtonLBFGS.h.
|
private |
Definition at line 192 of file elxQuasiNewtonLBFGS.h.
|
protected |
Definition at line 155 of file elxQuasiNewtonLBFGS.h.
|
private |
Definition at line 190 of file elxQuasiNewtonLBFGS.h.
|
private |
Definition at line 191 of file elxQuasiNewtonLBFGS.h.
|
private |
Definition at line 193 of file elxQuasiNewtonLBFGS.h.
|
private |
Definition at line 194 of file elxQuasiNewtonLBFGS.h.
Generated on 21-03-2014 for elastix by ![]() |
![]() |