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  * Copyright UMC Utrecht and contributors
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 #ifndef __elxSimultaneousPerturbation_h
19 #define __elxSimultaneousPerturbation_h
20 
21 #include "elxIncludes.h" // include first to avoid MSVS warning
22 #include "itkSPSAOptimizer.h"
23 
24 namespace elastix
25 {
26 
82 template< class TElastix >
84  public
85  itk::SPSAOptimizer,
86  public
87  OptimizerBase< TElastix >
88 {
89 public:
90 
93  typedef SPSAOptimizer Superclass1;
95  typedef itk::SmartPointer< Self > Pointer;
96  typedef itk::SmartPointer< const Self > ConstPointer;
97 
99  itkNewMacro( Self );
100 
102  itkTypeMacro( SimultaneousPerturbation, SPSAOptimizer );
103 
108  elxClassNameMacro( "SimultaneousPerturbation" );
109 
111  typedef Superclass1::CostFunctionType CostFunctionType;
112  typedef Superclass1::CostFunctionPointer CostFunctionPointer;
113  typedef Superclass1::StopConditionType StopConditionType;
114 
123 
125  typedef typename Superclass1::ParametersType ParametersType;
126 
128  virtual void BeforeRegistration( void );
129 
130  virtual void BeforeEachResolution( void );
131 
132  virtual void AfterEachResolution( void );
133 
134  virtual void AfterEachIteration( void );
135 
136  virtual void AfterRegistration( void );
137 
142  virtual void SetInitialPosition( const ParametersType & param );
143 
144 protected:
145 
148 
150 
151 private:
152 
153  SimultaneousPerturbation( const Self & ); // purposely not implemented
154  void operator=( const Self & ); // purposely not implemented
155 
156 };
157 
158 } // end namespace elastix
159 
160 #ifndef ITK_MANUAL_INSTANTIATION
161 #include "elxSimultaneousPerturbation.hxx"
162 #endif
163 
164 #endif // end #ifndef __elxSimultaneousPerturbation_h
Superclass1::CostFunctionType CostFunctionType
Superclass::RegistrationPointer RegistrationPointer
virtual void AfterRegistration(void)
This class is the elastix base class for all Optimizers.
virtual void SetInitialPosition(const ParametersType &param)
virtual void AfterEachResolution(void)
Superclass::ElastixType ElastixType
Superclass::ConfigurationPointer ConfigurationPointer
elxClassNameMacro("SimultaneousPerturbation")
Superclass::ElastixPointer ElastixPointer
Superclass1::StopConditionType StopConditionType
Superclass::ConfigurationType ConfigurationType
Superclass2::RegistrationType RegistrationType
Superclass1::CostFunctionPointer CostFunctionPointer
itk::Optimizer ITKBaseType
Superclass2::RegistrationPointer RegistrationPointer
virtual void BeforeEachResolution(void)
itk::SmartPointer< const Self > ConstPointer
Superclass2::ConfigurationType ConfigurationType
virtual void AfterEachIteration(void)
virtual void BeforeRegistration(void)
Superclass::RegistrationType RegistrationType
Superclass2::ConfigurationPointer ConfigurationPointer
An optimizer based on the itk::SPSAOptimizer.


Generated on 04-09-2015 for elastix by doxygen 1.8.9.1 elastix logo