go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions
elastix::RSGDEachParameterApart< TElastix > Class Template Reference

#include <elxRSGDEachParameterApart.h>

Inheritance diagram for elastix::RSGDEachParameterApart< TElastix >:
Inheritance graph
[legend]
Collaboration diagram for elastix::RSGDEachParameterApart< TElastix >:
Collaboration graph
[legend]

Public Types

typedef
Superclass2::ConfigurationPointer 
ConfigurationPointer
 
typedef
Superclass2::ConfigurationType 
ConfigurationType
 
typedef SmartPointer< const SelfConstPointer
 
typedef
Superclass1::CostFunctionPointer 
CostFunctionPointer
 
typedef
Superclass1::CostFunctionType 
CostFunctionType
 
typedef Superclass2::ElastixPointer ElastixPointer
 
typedef Superclass2::ElastixType ElastixType
 
typedef Superclass2::ITKBaseType ITKBaseType
 
typedef Superclass1::ParametersType ParametersType
 
typedef SmartPointer< SelfPointer
 
typedef
Superclass2::RegistrationPointer 
RegistrationPointer
 
typedef
Superclass2::RegistrationType 
RegistrationType
 
typedef RSGDEachParameterApart Self
 
typedef
RSGDEachParameterApartOptimizer 
Superclass1
 
typedef OptimizerBase< TElastix > Superclass2
 
- Public Types inherited from itk::RSGDEachParameterApartOptimizer
typedef SmartPointer< const SelfConstPointer
 
typedef CostFunctionType::Pointer CostFunctionPointer
 
typedef
Superclass::CostFunctionType 
CostFunctionType
 
typedef SmartPointer< SelfPointer
 
typedef
RSGDEachParameterApartOptimizer 
Self
 
typedef
RSGDEachParameterApartBaseOptimizer 
Superclass
 
- Public Types inherited from itk::RSGDEachParameterApartBaseOptimizer
typedef SmartPointer< const SelfConstPointer
 
typedef SmartPointer< SelfPointer
 
typedef
RSGDEachParameterApartBaseOptimizer 
Self
 
enum  StopConditionType {
  GradientMagnitudeTolerance =1, StepTooSmall, ImageNotAvailable, SamplesNotAvailable,
  MaximumNumberOfIterations, MetricError
}
 
typedef
SingleValuedNonLinearOptimizer 
Superclass
 
- Public Types inherited from elastix::OptimizerBase< TElastix >
typedef
Superclass::ConfigurationPointer 
ConfigurationPointer
 
typedef
Superclass::ConfigurationType 
ConfigurationType
 
typedef Superclass::ElastixPointer ElastixPointer
 
typedef Superclass::ElastixType ElastixType
 
typedef itk::Optimizer ITKBaseType
 
typedef ITKBaseType::ParametersType ParametersType
 
typedef
Superclass::RegistrationPointer 
RegistrationPointer
 
typedef
Superclass::RegistrationType 
RegistrationType
 
typedef OptimizerBase Self
 
typedef BaseComponentSE< TElastix > Superclass
 
- Public Types inherited from elastix::BaseComponentSE< TElastix >
typedef
ElastixType::ConfigurationPointer 
ConfigurationPointer
 
typedef
ElastixType::ConfigurationType 
ConfigurationType
 
typedef ElastixType::Pointer ElastixPointer
 
typedef TElastix ElastixType
 
typedef RegistrationTypeRegistrationPointer
 
typedef
ElastixType::RegistrationBaseType 
RegistrationType
 
typedef BaseComponentSE Self
 
typedef BaseComponent Superclass
 

Public Member Functions

virtual void AfterEachIteration (void)
 
virtual void AfterEachResolution (void)
 
virtual void AfterRegistration (void)
 
virtual void BeforeEachResolution (void)
 
virtual void BeforeRegistration (void)
 
 elxClassNameMacro ("RSGDEachParameterApart")
 
virtual const char * GetClassName () const
 
virtual void SetInitialPosition (const ParametersType &param)
 
- Public Member Functions inherited from itk::RSGDEachParameterApartBaseOptimizer
virtual unsigned long GetCurrentIteration () const
 
virtual double GetCurrentStepLength () const
 
virtual const DerivativeType & GetCurrentStepLengths ()
 
virtual const DerivativeType & GetGradient ()
 
virtual double GetGradientMagnitude () const
 
virtual double GetGradientMagnitudeTolerance () const
 
virtual bool GetMaximize () const
 
virtual double GetMaximumStepLength () const
 
bool GetMinimize () const
 
virtual double GetMinimumStepLength () const
 
virtual unsigned long GetNumberOfIterations () const
 
virtual StopConditionType GetStopCondition () const
 
virtual MeasureType GetValue () const
 
virtual void MaximizeOff ()
 
virtual void MaximizeOn ()
 
void MinimizeOff (void)
 
void MinimizeOn (void)
 
void ResumeOptimization (void)
 
virtual void SetGradientMagnitudeTolerance (double _arg)
 
virtual void SetMaximize (bool _arg)
 
virtual void SetMaximumStepLength (double _arg)
 
void SetMinimize (bool v)
 
virtual void SetMinimumStepLength (double _arg)
 
virtual void SetNumberOfIterations (unsigned long _arg)
 
void StartOptimization (void)
 
void StopOptimization (void)
 
- Public Member Functions inherited from elastix::OptimizerBase< TElastix >
virtual void BeforeEachResolutionBase ()
 
virtual ITKBaseTypeGetAsITKBaseType (void)
 
virtual const ITKBaseTypeGetAsITKBaseType (void) const
 
virtual void SetCurrentPositionPublic (const ParametersType &param)
 
virtual void SetSinusScales (double amplitude, double frequency, unsigned long numberOfParameters)
 
- Public Member Functions inherited from elastix::BaseComponentSE< TElastix >
virtual ConfigurationTypeGetConfiguration (void) const
 
virtual ElastixTypeGetElastix (void) const
 
virtual RegistrationPointer GetRegistration (void) const
 
virtual void SetConfiguration (ConfigurationType *_arg)
 
virtual void SetElastix (ElastixType *_arg)
 
- Public Member Functions inherited from elastix::BaseComponent
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 ()
 
- Static Public Member Functions inherited from itk::RSGDEachParameterApartOptimizer
static Pointer New ()
 
- Static Public Member Functions inherited from itk::RSGDEachParameterApartBaseOptimizer
static Pointer New ()
 

Protected Member Functions

 RSGDEachParameterApart ()
 
virtual ~RSGDEachParameterApart ()
 
- Protected Member Functions inherited from itk::RSGDEachParameterApartOptimizer
 RSGDEachParameterApartOptimizer ()
 
virtual void StepAlongGradient (const DerivativeType &factor, const DerivativeType &transformedGradient)
 
virtual ~RSGDEachParameterApartOptimizer ()
 
- Protected Member Functions inherited from itk::RSGDEachParameterApartBaseOptimizer
virtual void AdvanceOneStep (void)
 
void PrintSelf (std::ostream &os, Indent indent) const
 
 RSGDEachParameterApartBaseOptimizer ()
 
virtual ~RSGDEachParameterApartBaseOptimizer ()
 
- Protected Member Functions inherited from elastix::OptimizerBase< TElastix >
virtual bool GetNewSamplesEveryIteration (void) const
 
 OptimizerBase ()
 
virtual void SelectNewSamples (void)
 
virtual ~OptimizerBase ()
 
- Protected Member Functions inherited from elastix::BaseComponentSE< TElastix >
 BaseComponentSE ()
 
virtual ~BaseComponentSE ()
 
- Protected Member Functions inherited from elastix::BaseComponent
 BaseComponent ()
 
virtual ~BaseComponent ()
 

Private Member Functions

void operator= (const Self &)
 
 RSGDEachParameterApart (const Self &)
 

Additional Inherited Members

- Protected Attributes inherited from itk::RSGDEachParameterApartBaseOptimizer
unsigned long m_CurrentIteration
 
double m_CurrentStepLength
 
DerivativeType m_CurrentStepLengths
 
DerivativeType m_Gradient
 
double m_GradientMagnitude
 
double m_GradientMagnitudeTolerance
 
bool m_Maximize
 
double m_MaximumStepLength
 
double m_MinimumStepLength
 
unsigned long m_NumberOfIterations
 
DerivativeType m_PreviousGradient
 
bool m_Stop
 
StopConditionType m_StopCondition
 
MeasureType m_Value
 
- Protected Attributes inherited from elastix::BaseComponentSE< TElastix >
ConfigurationPointer m_Configuration
 
ElastixPointer m_Elastix
 
RegistrationPointer m_Registration
 

Detailed Description

template<class TElastix>
class elastix::RSGDEachParameterApart< TElastix >

An optimizer based on gradient descent.

The underlying itk class is almost a copy of the normal RegularStepGradientDescent. The difference is that each parameter has its own step length, whereas the normal RSGD has one step length that is used for all parameters.

This could cause inaccuracies, if, for example, parameter 1, 2 and 3 are already close to the optimum, but parameter 4 not yet. The average stepsize is halved then, so parameter 4 will not have time to reach its optimum (in a worst case scenario).

The RSGDEachParameterApart stops only if ALL steplenghts are smaller than the MinimumStepSize given in the parameter file!

The elastix shell class (so, this class...), is a copy of the elxRegularStepGradientDescent, so the parameters in the parameter file, the output etc are similar.

The parameters used in this class are:

Parameters:

Optimizer: Select this optimizer as follows:
(Optimizer "RSGDEachParameterApart")

MaximumNumberOfIterations: the maximum number of iterations in each resolution.
example: (MaximumNumberOfIterations 100 100 50)
Default value: 100.

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: (MaxiumStepLength 16.0 8.0 4.0)
Default value: 16 / 2^resolutionlevel.

Definition at line 70 of file elxRSGDEachParameterApart.h.

Member Typedef Documentation

Definition at line 105 of file elxRSGDEachParameterApart.h.

Definition at line 104 of file elxRSGDEachParameterApart.h.

template<class TElastix >
typedef SmartPointer<const Self> elastix::RSGDEachParameterApart< TElastix >::ConstPointer

Definition at line 83 of file elxRSGDEachParameterApart.h.

Definition at line 99 of file elxRSGDEachParameterApart.h.

template<class TElastix >
typedef Superclass1::CostFunctionType elastix::RSGDEachParameterApart< TElastix >::CostFunctionType

Typedef's inherited from Superclass1.

Definition at line 98 of file elxRSGDEachParameterApart.h.

template<class TElastix >
typedef Superclass2::ElastixPointer elastix::RSGDEachParameterApart< TElastix >::ElastixPointer

Definition at line 103 of file elxRSGDEachParameterApart.h.

template<class TElastix >
typedef Superclass2::ElastixType elastix::RSGDEachParameterApart< TElastix >::ElastixType

Typedef's inherited from Elastix.

Definition at line 102 of file elxRSGDEachParameterApart.h.

template<class TElastix >
typedef Superclass2::ITKBaseType elastix::RSGDEachParameterApart< TElastix >::ITKBaseType

Definition at line 108 of file elxRSGDEachParameterApart.h.

template<class TElastix >
typedef Superclass1::ParametersType elastix::RSGDEachParameterApart< TElastix >::ParametersType

Typedef for the ParametersType.

Definition at line 111 of file elxRSGDEachParameterApart.h.

template<class TElastix >
typedef SmartPointer<Self> elastix::RSGDEachParameterApart< TElastix >::Pointer

Definition at line 82 of file elxRSGDEachParameterApart.h.

Definition at line 107 of file elxRSGDEachParameterApart.h.

template<class TElastix >
typedef Superclass2::RegistrationType elastix::RSGDEachParameterApart< TElastix >::RegistrationType

Definition at line 106 of file elxRSGDEachParameterApart.h.

template<class TElastix >
typedef RSGDEachParameterApart elastix::RSGDEachParameterApart< TElastix >::Self

Standard ITK.

Definition at line 79 of file elxRSGDEachParameterApart.h.

template<class TElastix >
typedef RSGDEachParameterApartOptimizer elastix::RSGDEachParameterApart< TElastix >::Superclass1

Definition at line 80 of file elxRSGDEachParameterApart.h.

template<class TElastix >
typedef OptimizerBase<TElastix> elastix::RSGDEachParameterApart< TElastix >::Superclass2

Definition at line 81 of file elxRSGDEachParameterApart.h.

Constructor & Destructor Documentation

template<class TElastix >
elastix::RSGDEachParameterApart< TElastix >::RSGDEachParameterApart ( )
inlineprotected

Definition at line 128 of file elxRSGDEachParameterApart.h.

template<class TElastix >
virtual elastix::RSGDEachParameterApart< TElastix >::~RSGDEachParameterApart ( )
inlineprotectedvirtual

Definition at line 129 of file elxRSGDEachParameterApart.h.

template<class TElastix >
elastix::RSGDEachParameterApart< TElastix >::RSGDEachParameterApart ( const Self )
private

Member Function Documentation

template<class TElastix >
virtual void elastix::RSGDEachParameterApart< TElastix >::AfterEachIteration ( void  )
virtual

Reimplemented from elastix::BaseComponent.

template<class TElastix >
virtual void elastix::RSGDEachParameterApart< TElastix >::AfterEachResolution ( void  )
virtual

Reimplemented from elastix::BaseComponent.

template<class TElastix >
virtual void elastix::RSGDEachParameterApart< TElastix >::AfterRegistration ( void  )
virtual

Reimplemented from elastix::BaseComponent.

template<class TElastix >
virtual void elastix::RSGDEachParameterApart< TElastix >::BeforeEachResolution ( void  )
virtual

Reimplemented from elastix::BaseComponent.

template<class TElastix >
virtual void elastix::RSGDEachParameterApart< TElastix >::BeforeRegistration ( void  )
virtual

Methods that have to be present everywhere.

Reimplemented from elastix::BaseComponent.

template<class TElastix >
elastix::RSGDEachParameterApart< TElastix >::elxClassNameMacro ( "RSGDEachParameterApart< TElastix >"  )

Name of this class. Use this name in the parameter file to select this specific optimizer.
example: (Optimizer "RSGDEachParameterApart")

template<class TElastix >
virtual const char* elastix::RSGDEachParameterApart< TElastix >::GetClassName ( ) const
virtual

Run-time type information (and related methods).

Reimplemented from itk::RSGDEachParameterApartOptimizer.

template<class TElastix >
static Pointer elastix::RSGDEachParameterApart< TElastix >::New ( )
static

Method for creation through the object factory.

template<class TElastix >
void elastix::RSGDEachParameterApart< TElastix >::operator= ( const Self )
private
template<class TElastix >
virtual void elastix::RSGDEachParameterApart< TElastix >::SetInitialPosition ( const ParametersType param)
virtual

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 05-12-2013 for elastix by doxygen 1.8.5 elastix logo