go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
elxPowell.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 __elxPowell_h
19 #define __elxPowell_h
20 
21 #include "elxIncludes.h" // include first to avoid MSVS warning
22 #include "itkPowellOptimizer.h"
23 
24 namespace elastix
25 {
26 
40 template< class TElastix >
41 class Powell :
42  public
43  itk::PowellOptimizer,
44  public
45  OptimizerBase< TElastix >
46 {
47 public:
48 
50  typedef Powell Self;
51  typedef PowellOptimizer Superclass1;
53  typedef itk::SmartPointer< Self > Pointer;
54  typedef itk::SmartPointer< const Self > ConstPointer;
55 
57  itkNewMacro( Self );
58 
60  itkTypeMacro( Powell, PowellOptimizer );
61 
66  elxClassNameMacro( "Powell" );
67 
69  typedef Superclass1::CostFunctionType CostFunctionType;
70  typedef Superclass1::CostFunctionPointer CostFunctionPointer;
71 
80 
82  typedef typename Superclass1::ParametersType ParametersType;
83 
86  virtual void BeforeRegistration( void );
87 
88  virtual void BeforeEachResolution( void );
89 
90  virtual void AfterEachResolution( void );
91 
92  virtual void AfterEachIteration( void );
93 
94  virtual void AfterRegistration( void );
95 
100  virtual void SetInitialPosition( const ParametersType & param );
101 
102 protected:
103 
104  Powell(){}
105  virtual ~Powell() {}
106 
107 private:
108 
109  Powell( const Self & ); // purposely not implemented
110  void operator=( const Self & ); // purposely not implemented
111 
112 };
113 
114 } // end namespace elastix
115 
116 #ifndef ITK_MANUAL_INSTANTIATION
117 #include "elxPowell.hxx"
118 #endif
119 
120 #endif // end #ifndef __elxPowell_h
Superclass::RegistrationPointer RegistrationPointer
Superclass2::RegistrationType RegistrationType
Definition: elxPowell.h:77
Superclass2::ElastixType ElastixType
Definition: elxPowell.h:73
virtual void SetInitialPosition(const ParametersType &param)
PowellOptimizer Superclass1
Definition: elxPowell.h:51
This class is the elastix base class for all Optimizers.
Superclass1::ParametersType ParametersType
Definition: elxPowell.h:82
Superclass::ElastixType ElastixType
Superclass::ConfigurationPointer ConfigurationPointer
virtual void AfterRegistration(void)
Superclass::ElastixPointer ElastixPointer
Superclass::ConfigurationType ConfigurationType
virtual void BeforeEachResolution(void)
Superclass2::ElastixPointer ElastixPointer
Definition: elxPowell.h:74
Superclass2::ITKBaseType ITKBaseType
Definition: elxPowell.h:79
OptimizerBase< TElastix > Superclass2
Definition: elxPowell.h:52
void operator=(const Self &)
Superclass2::ConfigurationPointer ConfigurationPointer
Definition: elxPowell.h:76
itk::Optimizer ITKBaseType
Superclass2::RegistrationPointer RegistrationPointer
Definition: elxPowell.h:78
itk::SmartPointer< Self > Pointer
Definition: elxPowell.h:53
virtual void AfterEachResolution(void)
Superclass1::CostFunctionPointer CostFunctionPointer
Definition: elxPowell.h:70
itk::SmartPointer< const Self > ConstPointer
Definition: elxPowell.h:54
Superclass2::ConfigurationType ConfigurationType
Definition: elxPowell.h:75
Superclass::RegistrationType RegistrationType
virtual void AfterEachIteration(void)
Superclass1::CostFunctionType CostFunctionType
Definition: elxPowell.h:69
An optimizer based on Powell...
Definition: elxPowell.h:41
virtual void BeforeRegistration(void)
elxClassNameMacro("Powell")
virtual ~Powell()
Definition: elxPowell.h:105


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