go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
elxSimultaneousPerturbation.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 
15 #ifndef __elxSimultaneousPerturbation_h
16 #define __elxSimultaneousPerturbation_h
17 
18 #include "itkSPSAOptimizer.h"
19 #include "elxIncludes.h"
20 
21 namespace elastix
22 {
23 using namespace itk;
24 
80  template <class TElastix>
82  public
83  itk::SPSAOptimizer,
84  public
85  OptimizerBase<TElastix>
86  {
87  public:
88 
91  typedef SPSAOptimizer Superclass1;
93  typedef SmartPointer<Self> Pointer;
94  typedef SmartPointer<const Self> ConstPointer;
95 
97  itkNewMacro( Self );
98 
100  itkTypeMacro( SimultaneousPerturbation, SPSAOptimizer );
101 
106  elxClassNameMacro( "SimultaneousPerturbation" );
107 
109  typedef Superclass1::CostFunctionType CostFunctionType;
110  typedef Superclass1::CostFunctionPointer CostFunctionPointer;
111  typedef Superclass1::StopConditionType StopConditionType;
112 
121 
123  typedef typename Superclass1::ParametersType ParametersType;
124 
126  virtual void BeforeRegistration(void);
127  virtual void BeforeEachResolution(void);
128  virtual void AfterEachResolution(void);
129  virtual void AfterEachIteration(void);
130  virtual void AfterRegistration(void);
131 
136  virtual void SetInitialPosition( const ParametersType & param );
137 
138  protected:
139 
142 
143  bool m_ShowMetricValues;
144 
145  private:
146 
147  SimultaneousPerturbation( const Self& ); // purposely not implemented
148  void operator=( const Self& ); // purposely not implemented
149 
150  }; // end class SimultaneousPerturbation
151 
152 
153 } // end namespace elastix
154 
155 #ifndef ITK_MANUAL_INSTANTIATION
156 #include "elxSimultaneousPerturbation.hxx"
157 #endif
158 
159 #endif // end #ifndef __elxSimultaneousPerturbation_h
Superclass1::CostFunctionType CostFunctionType
Superclass::RegistrationPointer RegistrationPointer
#define elxClassNameMacro(_name)
Definition: elxMacro.h:254
This class is the elastix base class for all Optimizers.
Superclass::ElastixType ElastixType
Superclass::ConfigurationPointer ConfigurationPointer
Superclass::ElastixPointer ElastixPointer
Superclass1::StopConditionType StopConditionType
Superclass::ConfigurationType ConfigurationType
Superclass2::RegistrationType RegistrationType
Superclass1::CostFunctionPointer CostFunctionPointer
itk::Optimizer ITKBaseType
Superclass2::RegistrationPointer RegistrationPointer
Superclass2::ConfigurationType ConfigurationType
Superclass::RegistrationType RegistrationType
Superclass2::ConfigurationPointer ConfigurationPointer
An optimizer based on the itk::SPSAOptimizer.


Generated on 06-12-2013 for elastix by doxygen 1.8.5 elastix logo