go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
elxFullSearchOptimizer.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 __elxFullSearchOptimizer_h
19 #define __elxFullSearchOptimizer_h
20 
21 #include "elxIncludes.h" // include first to avoid MSVS warning
22 #include "itkFullSearchOptimizer.h"
23 #include <map>
24 
25 #include "itkNDImageBase.h"
26 
27 namespace elastix
28 {
29 
56 template< class TElastix >
57 class FullSearch :
58  public
60  public
61  OptimizerBase< TElastix >
62 {
63 public:
64 
66  typedef FullSearch Self;
69  typedef itk::SmartPointer< Self > Pointer;
70  typedef itk::SmartPointer< const Self > ConstPointer;
71 
73  itkNewMacro( Self );
74 
76  itkTypeMacro( FullSearch, itk::FullSearchOptimizer );
77 
82  elxClassNameMacro( "FullSearch" );
83 
98 
107 
111 
113  typedef std::map< unsigned int, std::string > DimensionNameMapType;
114  typedef typename DimensionNameMapType::const_iterator NameIteratorType;
115 
117  virtual void BeforeRegistration( void );
118 
119  virtual void BeforeEachResolution( void );
120 
121  virtual void AfterEachResolution( void );
122 
123  virtual void AfterEachIteration( void );
124 
125  virtual void AfterRegistration( void );
126 
130  itkGetObjectMacro( OptimizationSurface, NDImageType );
131 
132 protected:
133 
134  FullSearch();
135  virtual ~FullSearch() {}
136 
137  NDImagePointer m_OptimizationSurface;
138 
139  DimensionNameMapType m_SearchSpaceDimensionNames;
140 
145  //virtual int CheckSearchSpaceRangeDefinition(const std::string & fullFieldName,
146  // int errorcode, unsigned int entry_nr);
147  virtual bool CheckSearchSpaceRangeDefinition( const std::string & fullFieldName,
148  const bool found, const unsigned int entry_nr ) const;
149 
150 private:
151 
152  FullSearch( const Self & ); // purposely not implemented
153  void operator=( const Self & ); // purposely not implemented
154 
155 };
156 
157 } // end namespace elastix
158 
159 #ifndef ITK_MANUAL_INSTANTIATION
160 #include "elxFullSearchOptimizer.hxx"
161 #endif
162 
163 #endif // end #ifndef __elxFullSearchOptimizer_h
FixedArray< RangeValueType, 3 > RangeType
itk::FullSearchOptimizer Superclass1
Superclass::RegistrationPointer RegistrationPointer
Superclass2::ConfigurationPointer ConfigurationPointer
Superclass1::CostFunctionPointer CostFunctionPointer
Superclass1::SearchSpacePointer SearchSpacePointer
Superclass1::CostFunctionType CostFunctionType
Superclass1::ParametersType ParametersType
Superclass1::MeasureType MeasureType
This class is the elastix base class for all Optimizers.
Superclass1::ParameterValueType ParameterValueType
DimensionNameMapType m_SearchSpaceDimensionNames
virtual bool CheckSearchSpaceRangeDefinition(const std::string &fullFieldName, const bool found, const unsigned int entry_nr) const
virtual void BeforeRegistration(void)
ParameterValueType RangeValueType
virtual void AfterRegistration(void)
Superclass1::SearchSpaceIndexType SearchSpaceIndexType
Superclass::ElastixType ElastixType
Superclass::CostFunctionType CostFunctionType
Superclass::ConfigurationPointer ConfigurationPointer
itk::SmartPointer< Self > Pointer
itk::SmartPointer< const Self > ConstPointer
NDImageType::Pointer NDImagePointer
Superclass2::ConfigurationType ConfigurationType
Superclass1::RangeValueType RangeValueType
Superclass2::ElastixType ElastixType
SearchSpaceType::ConstIterator SearchSpaceIteratorType
OptimizerBase< TElastix > Superclass2
void operator=(const Self &)
virtual void BeforeEachResolution(void)
Superclass::ElastixPointer ElastixPointer
SearchSpaceType::Pointer SearchSpacePointer
An optimizer based on the itk::FullSearchOptimizer.
elxClassNameMacro("FullSearch")
MapContainer< unsigned int, RangeType > SearchSpaceType
Superclass::ConfigurationType ConfigurationType
Superclass1::RangeType RangeType
std::map< unsigned int, std::string > DimensionNameMapType
Superclass1::SearchSpacePointType SearchSpacePointType
An image whose dimension can be specified at runtime.
Superclass::CostFunctionPointer CostFunctionPointer
virtual void AfterEachIteration(void)
NDImagePointer m_OptimizationSurface
Array< SizeValueType > SearchSpaceSizeType
Array< ParameterValueType > SearchSpacePointType
DimensionNameMapType::const_iterator NameIteratorType
itk::Optimizer ITKBaseType
An optimizer based on full search.
Superclass2::ElastixPointer ElastixPointer
Superclass2::ITKBaseType ITKBaseType
Superclass1::SearchSpaceIteratorType SearchSpaceIteratorType
itk::NDImageBase< float > NDImageType
Superclass1::SearchSpaceType SearchSpaceType
Superclass2::RegistrationPointer RegistrationPointer
Superclass1::SearchSpaceSizeType SearchSpaceSizeType
virtual void AfterEachResolution(void)
ParametersType::ValueType ParameterValueType
Superclass::MeasureType MeasureType
Superclass::ParametersType ParametersType
Superclass2::RegistrationType RegistrationType
Array< IndexValueType > SearchSpaceIndexType
Superclass::RegistrationType RegistrationType


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