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 
24 namespace elastix
25 {
26 
40 template< class TElastix >
41 class Simplex :
42  public
43  itk::AmoebaOptimizer,
44  public
45  OptimizerBase< TElastix >
46 {
47 public:
48 
50  typedef Simplex Self;
51  typedef AmoebaOptimizer Superclass1;
53  typedef itk::SmartPointer< Self > Pointer;
54  typedef itk::SmartPointer< const Self > ConstPointer;
55 
57  itkNewMacro( Self );
58 
60  itkTypeMacro( Simplex, AmoebaOptimizer );
61 
66  elxClassNameMacro( "Simplex" );
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 
102 protected:
103 
105  ~Simplex() override {}
106 
107 private:
108 
109  Simplex( 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 "elxSimplex.hxx"
118 #endif
119 
120 #endif // end #ifndef __elxSimplex_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 Simplex...
Definition: elxSimplex.h:46
Superclass2::ElastixPointer ElastixPointer
Definition: elxSimplex.h:74
itk::SmartPointer< Self > Pointer
Definition: elxSimplex.h:53
Superclass2::RegistrationPointer RegistrationPointer
Definition: elxSimplex.h:78
void operator=(const Self &)
~Simplex() override
Definition: elxSimplex.h:105
void AfterEachResolution(void) override
itk::SmartPointer< const Self > ConstPointer
Definition: elxSimplex.h:54
Superclass2::RegistrationType RegistrationType
Definition: elxSimplex.h:77
Superclass2::ConfigurationPointer ConfigurationPointer
Definition: elxSimplex.h:76
void SetInitialPosition(const ParametersType &param) override
Superclass1::CostFunctionType CostFunctionType
Definition: elxSimplex.h:69
Superclass2::ElastixType ElastixType
Definition: elxSimplex.h:73
void BeforeRegistration(void) override
Superclass2::ConfigurationType ConfigurationType
Definition: elxSimplex.h:75
OptimizerBase< TElastix > Superclass2
Definition: elxSimplex.h:52
Superclass1::CostFunctionPointer CostFunctionPointer
Definition: elxSimplex.h:70
void BeforeEachResolution(void) override
AmoebaOptimizer Superclass1
Definition: elxSimplex.h:51
void AfterEachIteration(void) override
Superclass2::ITKBaseType ITKBaseType
Definition: elxSimplex.h:79
void AfterRegistration(void) override
Simplex(const Self &)
elxClassNameMacro("Simplex")
Superclass1::ParametersType ParametersType
Definition: elxSimplex.h:82


Generated on OURCE_DATE_EPOCH for elastix by doxygen 1.9.1 elastix logo