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  This file is part of the elastix software.
4 
5  Copyright (c) University Medical Center Utrecht. All rights reserved.
6  See src/CopyrightElastix.txt or http://elastix.isi.uu.nl/legal.php for
7  details.
8 
9  This software is distributed WITHOUT ANY WARRANTY; without even
10  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11  PURPOSE. See the above copyright notices for more information.
12 
13 ======================================================================*/
14 #ifndef __elxSimplex_h
15 #define __elxSimplex_h
16 
17 #include "elxIncludes.h" // include first to avoid MSVS warning
18 #include "itkAmoebaOptimizer.h"
19 
20 namespace elastix
21 {
22 
36 template< class TElastix >
37 class Simplex :
38  public
39  itk::AmoebaOptimizer,
40  public
41  OptimizerBase< TElastix >
42 {
43 public:
44 
46  typedef Simplex Self;
47  typedef AmoebaOptimizer Superclass1;
49  typedef itk::SmartPointer< Self > Pointer;
50  typedef itk::SmartPointer< const Self > ConstPointer;
51 
53  itkNewMacro( Self );
54 
56  itkTypeMacro( Simplex, AmoebaOptimizer );
57 
62  elxClassNameMacro( "Simplex" );
63 
65  typedef Superclass1::CostFunctionType CostFunctionType;
66  typedef Superclass1::CostFunctionPointer CostFunctionPointer;
67 
76 
78  typedef typename Superclass1::ParametersType ParametersType;
79 
82  virtual void BeforeRegistration( void );
83 
84  virtual void BeforeEachResolution( void );
85 
86  virtual void AfterEachResolution( void );
87 
88  virtual void AfterEachIteration( void );
89 
90  virtual void AfterRegistration( void );
91 
96  virtual void SetInitialPosition( const ParametersType & param );
97 
98 protected:
99 
101  virtual ~Simplex() {}
102 
103 private:
104 
105  Simplex( const Self & ); // purposely not implemented
106  void operator=( const Self & ); // purposely not implemented
107 
108 };
109 
110 } // end namespace elastix
111 
112 #ifndef ITK_MANUAL_INSTANTIATION
113 #include "elxSimplex.hxx"
114 #endif
115 
116 #endif // end #ifndef __elxSimplex_h
virtual void BeforeRegistration(void)
Superclass::RegistrationPointer RegistrationPointer
virtual void AfterEachIteration(void)
itk::SmartPointer< const Self > ConstPointer
Definition: elxSimplex.h:50
OptimizerBase< TElastix > Superclass2
Definition: elxSimplex.h:48
This class is the elastix base class for all Optimizers.
Superclass2::ElastixPointer ElastixPointer
Definition: elxSimplex.h:70
Superclass::ElastixType ElastixType
Superclass::ConfigurationPointer ConfigurationPointer
Superclass1::CostFunctionPointer CostFunctionPointer
Definition: elxSimplex.h:66
Superclass::ElastixPointer ElastixPointer
void operator=(const Self &)
Superclass::ConfigurationType ConfigurationType
Superclass2::ITKBaseType ITKBaseType
Definition: elxSimplex.h:75
itk::SmartPointer< Self > Pointer
Definition: elxSimplex.h:49
virtual void AfterRegistration(void)
elxClassNameMacro("Simplex")
AmoebaOptimizer Superclass1
Definition: elxSimplex.h:47
Superclass2::ConfigurationPointer ConfigurationPointer
Definition: elxSimplex.h:72
An optimizer based on Simplex...
Definition: elxSimplex.h:37
virtual void BeforeEachResolution(void)
itk::Optimizer ITKBaseType
virtual ~Simplex()
Definition: elxSimplex.h:101
Superclass2::ConfigurationType ConfigurationType
Definition: elxSimplex.h:71
virtual void SetInitialPosition(const ParametersType &param)
Superclass2::RegistrationPointer RegistrationPointer
Definition: elxSimplex.h:74
Superclass1::ParametersType ParametersType
Definition: elxSimplex.h:78
virtual void AfterEachResolution(void)
Superclass2::ElastixType ElastixType
Definition: elxSimplex.h:69
Superclass::RegistrationType RegistrationType
Superclass1::CostFunctionType CostFunctionType
Definition: elxSimplex.h:65
Superclass2::RegistrationType RegistrationType
Definition: elxSimplex.h:73


Generated on 11-03-2014 for elastix by doxygen 1.8.6 elastix logo