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
elastix::Powell::ITKBaseType
Superclass2::ITKBaseType ITKBaseType
Definition: elxPowell.h:79
elastix::Powell
An optimizer based on Powell...
Definition: elxPowell.h:46
elastix::Powell::ConfigurationPointer
Superclass2::ConfigurationPointer ConfigurationPointer
Definition: elxPowell.h:76
elastix::Powell::RegistrationPointer
Superclass2::RegistrationPointer RegistrationPointer
Definition: elxPowell.h:78
elastix::Powell::BeforeEachResolution
virtual void BeforeEachResolution(void)
elastix::OptimizerBase::RegistrationPointer
Superclass::RegistrationPointer RegistrationPointer
Definition: elxOptimizerBase.h:70
elastix::Powell::Self
Powell Self
Definition: elxPowell.h:50
elastix::Powell::AfterEachIteration
virtual void AfterEachIteration(void)
elastix::Powell::CostFunctionPointer
Superclass1::CostFunctionPointer CostFunctionPointer
Definition: elxPowell.h:70
elastix::Powell::~Powell
virtual ~Powell()
Definition: elxPowell.h:105
elastix::OptimizerBase::RegistrationType
Superclass::RegistrationType RegistrationType
Definition: elxOptimizerBase.h:69
elastix::OptimizerBase::ConfigurationPointer
Superclass::ConfigurationPointer ConfigurationPointer
Definition: elxOptimizerBase.h:68
elastix::Powell::SetInitialPosition
virtual void SetInitialPosition(const ParametersType &param)
elastix::Powell::Pointer
itk::SmartPointer< Self > Pointer
Definition: elxPowell.h:53
elastix::Powell::Powell
Powell(const Self &)
elastix::OptimizerBase
This class is the elastix base class for all Optimizers.
Definition: elxOptimizerBase.h:54
elastix::Powell::CostFunctionType
Superclass1::CostFunctionType CostFunctionType
Definition: elxPowell.h:69
elastix::Powell::AfterRegistration
virtual void AfterRegistration(void)
elastix::OptimizerBase::ConfigurationType
Superclass::ConfigurationType ConfigurationType
Definition: elxOptimizerBase.h:67
elastix::Powell::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition: elxPowell.h:54
elastix::Powell::ConfigurationType
Superclass2::ConfigurationType ConfigurationType
Definition: elxPowell.h:75
elastix::OptimizerBase::ElastixPointer
Superclass::ElastixPointer ElastixPointer
Definition: elxOptimizerBase.h:66
elastix::Powell::AfterEachResolution
virtual void AfterEachResolution(void)
elastix::Powell::RegistrationType
Superclass2::RegistrationType RegistrationType
Definition: elxPowell.h:77
elxIncludes.h
elastix::Powell::ParametersType
Superclass1::ParametersType ParametersType
Definition: elxPowell.h:82
elastix::Powell::Superclass1
PowellOptimizer Superclass1
Definition: elxPowell.h:51
elastix::Powell::ElastixPointer
Superclass2::ElastixPointer ElastixPointer
Definition: elxPowell.h:74
elastix::Powell::BeforeRegistration
virtual void BeforeRegistration(void)
elastix::Powell::operator=
void operator=(const Self &)
elastix::Powell::Powell
Powell()
Definition: elxPowell.h:104
elastix::OptimizerBase::ITKBaseType
itk::Optimizer ITKBaseType
Definition: elxOptimizerBase.h:73
elastix::Powell::Superclass2
OptimizerBase< TElastix > Superclass2
Definition: elxPowell.h:52
elastix::Powell::ElastixType
Superclass2::ElastixType ElastixType
Definition: elxPowell.h:73
elastix::OptimizerBase::ElastixType
Superclass::ElastixType ElastixType
Definition: elxOptimizerBase.h:62
elastix
Definition: elxFixedGenericPyramid.h:25
elastix::Powell::elxClassNameMacro
elxClassNameMacro("Powell")


Generated on OURCE_DATE_EPOCH for elastix by doxygen 1.8.18 elastix logo