go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
elxRegularStepGradientDescent.h
Go to the documentation of this file.
1 /*======================================================================
2 
3  This file is part of the elastix software.
4 
5  Copyright (c) University Medical Center Utrecht. All rights reserved.
6  See src/CopyrightElastix.txt or http://elastix.isi.uu.nl/legal.php for
7  details.
8 
9  This software is distributed WITHOUT ANY WARRANTY; without even
10  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11  PURPOSE. See the above copyright notices for more information.
12 
13 ======================================================================*/
14 #ifndef __elxRegularStepGradientDescent_h
15 #define __elxRegularStepGradientDescent_h
16 
17 #include "elxIncludes.h" // include first to avoid MSVS warning
18 #include "itkRegularStepGradientDescentOptimizer.h"
19 
20 namespace elastix
21 {
22 
60 template< class TElastix >
62  public
63  itk::RegularStepGradientDescentOptimizer,
64  public
65  OptimizerBase< TElastix >
66 {
67 public:
68 
71  typedef RegularStepGradientDescentOptimizer Superclass1;
73  typedef itk::SmartPointer< Self > Pointer;
74  typedef itk::SmartPointer< const Self > ConstPointer;
75 
77  itkNewMacro( Self );
78 
80  itkTypeMacro( RegularStepGradientDescent, RegularStepGradientDescentOptimizer );
81 
86  elxClassNameMacro( "RegularStepGradientDescent" );
87 
89  typedef Superclass1::CostFunctionType CostFunctionType;
90  typedef Superclass1::CostFunctionPointer CostFunctionPointer;
91 
100 
102  typedef typename Superclass1::ParametersType ParametersType;
103 
106  virtual void BeforeRegistration( void );
107 
108  virtual void BeforeEachResolution( void );
109 
110  virtual void AfterEachResolution( void );
111 
112  virtual void AfterEachIteration( void );
113 
114  virtual void AfterRegistration( void );
115 
120  virtual void SetInitialPosition( const ParametersType & param );
121 
122 protected:
123 
126 
127 private:
128 
129  RegularStepGradientDescent( const Self & ); // purposely not implemented
130  void operator=( const Self & ); // purposely not implemented
131 
132 };
133 
134 } // end namespace elastix
135 
136 #ifndef ITK_MANUAL_INSTANTIATION
137 #include "elxRegularStepGradientDescent.hxx"
138 #endif
139 
140 #endif // end #ifndef __elxRegularStepGradientDescent_h
Superclass::RegistrationPointer RegistrationPointer
RegularStepGradientDescentOptimizer Superclass1
Superclass2::ConfigurationPointer ConfigurationPointer
This class is the elastix base class for all Optimizers.
virtual void AfterEachResolution(void)
Superclass::ElastixType ElastixType
An optimizer based on gradient descent...
Superclass::ConfigurationPointer ConfigurationPointer
Superclass::ElastixPointer ElastixPointer
virtual void SetInitialPosition(const ParametersType &param)
Superclass::ConfigurationType ConfigurationType
Superclass1::CostFunctionPointer CostFunctionPointer
elxClassNameMacro("RegularStepGradientDescent")
itk::Optimizer ITKBaseType
itk::SmartPointer< const Self > ConstPointer
virtual void BeforeRegistration(void)
Superclass2::RegistrationPointer RegistrationPointer
Superclass::RegistrationType RegistrationType
virtual void AfterRegistration(void)
Superclass2::RegistrationType RegistrationType
Superclass1::CostFunctionType CostFunctionType
Superclass2::ConfigurationType ConfigurationType
virtual void BeforeEachResolution(void)
virtual void AfterEachIteration(void)


Generated on 27-04-2014 for elastix by doxygen 1.8.6 elastix logo