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
24namespace elastix
25{
26
40template< class TElastix >
41class Powell :
42 public
43 itk::PowellOptimizer,
44 public
45 OptimizerBase< TElastix >
46{
47public:
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 void BeforeRegistration( void ) override;
87
88 void BeforeEachResolution( void ) override;
89
90 void AfterEachResolution( void ) override;
91
92 void AfterEachIteration( void ) override;
93
94 void AfterRegistration( void ) override;
95
100 void SetInitialPosition( const ParametersType & param ) override;
101
102protected:
103
105 ~Powell() override {}
106
107private:
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
A class that deals with user given parameters and command line arguments.
This class is the elastix base class for all Optimizers.
Superclass::ConfigurationPointer ConfigurationPointer
itk::Optimizer ITKBaseType
Superclass::ElastixType ElastixType
Superclass::ElastixPointer ElastixPointer
Superclass::RegistrationPointer RegistrationPointer
Superclass::RegistrationType RegistrationType
An optimizer based on Powell...
Definition: elxPowell.h:46
Superclass2::ElastixPointer ElastixPointer
Definition: elxPowell.h:74
void BeforeEachResolution(void) override
Superclass2::RegistrationType RegistrationType
Definition: elxPowell.h:77
Superclass1::CostFunctionPointer CostFunctionPointer
Definition: elxPowell.h:70
Superclass1::ParametersType ParametersType
Definition: elxPowell.h:82
void BeforeRegistration(void) override
~Powell() override
Definition: elxPowell.h:105
PowellOptimizer Superclass1
Definition: elxPowell.h:51
void operator=(const Self &)
void AfterRegistration(void) override
itk::SmartPointer< Self > Pointer
Definition: elxPowell.h:53
Superclass2::ElastixType ElastixType
Definition: elxPowell.h:73
Superclass2::RegistrationPointer RegistrationPointer
Definition: elxPowell.h:78
itk::SmartPointer< const Self > ConstPointer
Definition: elxPowell.h:54
Powell(const Self &)
Superclass2::ITKBaseType ITKBaseType
Definition: elxPowell.h:79
Superclass2::ConfigurationType ConfigurationType
Definition: elxPowell.h:75
OptimizerBase< TElastix > Superclass2
Definition: elxPowell.h:52
void SetInitialPosition(const ParametersType &param) override
elxClassNameMacro("Powell")
Superclass2::ConfigurationPointer ConfigurationPointer
Definition: elxPowell.h:76
Superclass1::CostFunctionType CostFunctionType
Definition: elxPowell.h:69
void AfterEachIteration(void) override
void AfterEachResolution(void) override


Generated on 1667476801 for elastix by doxygen 1.9.4 elastix logo