go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
elxSimplex.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 elxSimplex_h
19#define elxSimplex_h
20
21#include "elxIncludes.h" // include first to avoid MSVS warning
22#include "itkAmoebaOptimizer.h"
23
24namespace elastix
25{
26
40template <class TElastix>
41class ITK_TEMPLATE_EXPORT Simplex
42 : public itk::AmoebaOptimizer
43 , public OptimizerBase<TElastix>
44{
45public:
47
49 using Self = Simplex;
50 using Superclass1 = AmoebaOptimizer;
52 using Pointer = itk::SmartPointer<Self>;
53 using ConstPointer = itk::SmartPointer<const Self>;
54
56 itkNewMacro(Self);
57
59 itkTypeMacro(Simplex, AmoebaOptimizer);
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 Simplex() = default;
105 ~Simplex() override = default;
106
107private:
109};
110
111} // end namespace elastix
112
113#ifndef ITK_MANUAL_INSTANTIATION
114# include "elxSimplex.hxx"
115#endif
116
117#endif // end #ifndef elxSimplex_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 Simplex...
Definition: elxSimplex.h:44
void BeforeEachResolution() override
ITK_DISALLOW_COPY_AND_MOVE(Simplex)
AmoebaOptimizer Superclass1
Definition: elxSimplex.h:50
itk::SmartPointer< Self > Pointer
Definition: elxSimplex.h:52
~Simplex() override=default
void BeforeRegistration() override
void SetInitialPosition(const ParametersType &param) override
Simplex()=default
void AfterEachResolution() override
void AfterEachIteration() override
itk::SmartPointer< const Self > ConstPointer
Definition: elxSimplex.h:53
void AfterRegistration() override
elxClassNameMacro("Simplex")
typename Superclass2::ITKBaseType ITKBaseType
Definition: elxSimplex.h:74


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