go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
elxOptimizerBase.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 
19 #ifndef __elxOptimizerBase_h
20 #define __elxOptimizerBase_h
21 
23 #include "elxMacro.h"
24 
25 #include "elxBaseComponentSE.h"
26 #include "itkOptimizer.h"
27 
28 namespace elastix
29 {
30 
52 template< class TElastix >
53 class OptimizerBase : public BaseComponentSE< TElastix >
54 {
55 public:
56 
60 
62  itkTypeMacro( OptimizerBase, BaseComponentSE );
63 
65  typedef typename Superclass::ElastixType ElastixType;
71 
73  typedef itk::Optimizer ITKBaseType;
74 
76  typedef typename ITKBaseType::ParametersType ParametersType;
77 
79  virtual ITKBaseType * GetAsITKBaseType( void )
80  {
81  return dynamic_cast< ITKBaseType * >( this );
82  }
83 
84 
86  virtual const ITKBaseType * GetAsITKBaseType( void ) const
87  {
88  return dynamic_cast< const ITKBaseType * >( this );
89  }
90 
91 
93  virtual void SetCurrentPositionPublic( const ParametersType & param );
94 
98  virtual void BeforeEachResolutionBase();
99 
103  virtual void AfterRegistrationBase( void );
104 
108  virtual void SetSinusScales( double amplitude, double frequency,
109  unsigned long numberOfParameters );
110 
111 protected:
112 
114  OptimizerBase();
116  virtual ~OptimizerBase() {}
117 
121  virtual void SelectNewSamples( void );
122 
124  virtual bool GetNewSamplesEveryIteration( void ) const;
125 
126 private:
127 
129  OptimizerBase( const Self & ); // purposely not implemented
131  void operator=( const Self & ); // purposely not implemented
132 
137 
138 };
139 
140 } // end namespace elastix
141 
142 #ifndef ITK_MANUAL_INSTANTIATION
143 #include "elxOptimizerBase.hxx"
144 #endif
145 
146 #endif // end #ifndef __elxOptimizerBase_h
The BaseComponentSE class is a base class for elastix components that provides some basic functionali...
Superclass::RegistrationPointer RegistrationPointer
void operator=(const Self &)
virtual void AfterRegistrationBase(void)
ElastixType::RegistrationBaseType RegistrationType
ElastixType::ConfigurationPointer ConfigurationPointer
ElastixType::Pointer ElastixPointer
ElastixType::ConfigurationType ConfigurationType
This class is the elastix base class for all Optimizers.
Superclass::ElastixType ElastixType
Superclass::ConfigurationPointer ConfigurationPointer
virtual void SetSinusScales(double amplitude, double frequency, unsigned long numberOfParameters)
ITKBaseType::ParametersType ParametersType
Superclass::ElastixPointer ElastixPointer
RegistrationType * RegistrationPointer
Superclass::ConfigurationType ConfigurationType
BaseComponentSE< TElastix > Superclass
virtual void SelectNewSamples(void)
virtual bool GetNewSamplesEveryIteration(void) const
itk::Optimizer ITKBaseType
virtual void BeforeEachResolutionBase()
virtual const ITKBaseType * GetAsITKBaseType(void) const
virtual void SetCurrentPositionPublic(const ParametersType &param)
virtual ITKBaseType * GetAsITKBaseType(void)
Superclass::RegistrationType RegistrationType


Generated on 04-09-2015 for elastix by doxygen 1.8.9.1 elastix logo