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 ITK_TEMPLATE_EXPORT Powell
42 : public itk::PowellOptimizer
43 , public OptimizerBase<TElastix>
44{
45public:
47
49 using Self = Powell;
50 using Superclass1 = PowellOptimizer;
52 using Pointer = itk::SmartPointer<Self>;
53 using ConstPointer = itk::SmartPointer<const Self>;
54
56 itkNewMacro(Self);
57
59 itkTypeMacro(Powell, PowellOptimizer);
60
66
68 using Superclass1::CostFunctionType;
69 using Superclass1::CostFunctionPointer;
70
72 using typename Superclass2::ElastixType;
73 using typename Superclass2::RegistrationType;
75
77 using typename Superclass1::ParametersType;
78
81 void
83
84 void
86
87 void
89
90 void
92
93 void
95
100 void
101 SetInitialPosition(const ParametersType & param) override;
102
103protected:
104 Powell() = default;
105 ~Powell() override = default;
106
107private:
109};
110
111} // end namespace elastix
112
113#ifndef ITK_MANUAL_INSTANTIATION
114# include "elxPowell.hxx"
115#endif
116
117#endif // end #ifndef elxPowell_h
This class is the elastix base class for all Optimizers.
typename ElastixType::RegistrationBaseType RegistrationType
itk::Optimizer ITKBaseType
typename ITKBaseType::ParametersType ParametersType
An optimizer based on Powell...
Definition: elxPowell.h:44
~Powell() override=default
itk::SmartPointer< const Self > ConstPointer
Definition: elxPowell.h:53
void BeforeEachResolution() override
ITK_DISALLOW_COPY_AND_MOVE(Powell)
typename Superclass2::ITKBaseType ITKBaseType
Definition: elxPowell.h:74
void BeforeRegistration() override
itk::SmartPointer< Self > Pointer
Definition: elxPowell.h:52
void SetInitialPosition(const ParametersType &param) override
elxClassNameMacro("Powell")
void AfterRegistration() override
Powell()=default
PowellOptimizer Superclass1
Definition: elxPowell.h:50
void AfterEachResolution() override
void AfterEachIteration() override


Generated on 2023-01-13 for elastix by doxygen 1.9.6 elastix logo