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 
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  void BeforeRegistration( void ) override;
118 
119  void BeforeEachResolution( void ) override;
120 
121  void AfterEachResolution( void ) override;
122 
123  void AfterEachIteration( void ) override;
124 
125  void AfterRegistration( void ) override;
126 
130  itkGetModifiableObjectMacro( OptimizationSurface, NDImageType );
131 
132 protected:
133 
135  ~FullSearch() override {}
136 
138 
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
A class that deals with user given parameters and command line arguments.
An optimizer based on the itk::FullSearchOptimizer.
void AfterRegistration(void) override
itk::SmartPointer< Self > Pointer
NDImagePointer m_OptimizationSurface
Superclass1::CostFunctionPointer CostFunctionPointer
void AfterEachIteration(void) override
void AfterEachResolution(void) override
Superclass2::RegistrationPointer RegistrationPointer
Superclass1::SearchSpacePointer SearchSpacePointer
Superclass2::ConfigurationType ConfigurationType
Superclass1::SearchSpaceType SearchSpaceType
Superclass1::CostFunctionType CostFunctionType
void operator=(const Self &)
Superclass1::ParametersType ParametersType
Superclass1::SearchSpaceIndexType SearchSpaceIndexType
itk::NDImageBase< float > NDImageType
Superclass1::RangeType RangeType
FullSearch(const Self &)
void BeforeRegistration(void) override
void BeforeEachResolution(void) override
DimensionNameMapType m_SearchSpaceDimensionNames
Superclass1::RangeValueType RangeValueType
itkGetModifiableObjectMacro(OptimizationSurface, NDImageType)
Superclass2::ITKBaseType ITKBaseType
OptimizerBase< TElastix > Superclass2
Superclass2::ElastixType ElastixType
Superclass1::SearchSpacePointType SearchSpacePointType
std::map< unsigned int, std::string > DimensionNameMapType
DimensionNameMapType::const_iterator NameIteratorType
Superclass1::SearchSpaceIteratorType SearchSpaceIteratorType
virtual bool CheckSearchSpaceRangeDefinition(const std::string &fullFieldName, const bool found, const unsigned int entry_nr) const
Superclass1::SearchSpaceSizeType SearchSpaceSizeType
Superclass1::MeasureType MeasureType
elxClassNameMacro("FullSearch")
itk::FullSearchOptimizer Superclass1
Superclass2::ConfigurationPointer ConfigurationPointer
Superclass1::ParameterValueType ParameterValueType
Superclass2::ElastixPointer ElastixPointer
NDImageType::Pointer NDImagePointer
Superclass2::RegistrationType RegistrationType
itk::SmartPointer< const Self > ConstPointer
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 full search.
Superclass::CostFunctionPointer CostFunctionPointer
Superclass::MeasureType MeasureType
Array< SizeValueType > SearchSpaceSizeType
Array< IndexValueType > SearchSpaceIndexType
MapContainer< unsigned int, RangeType > SearchSpaceType
SearchSpaceType::ConstIterator SearchSpaceIteratorType
ParametersType::ValueType ParameterValueType
Array< ParameterValueType > SearchSpacePointType
FixedArray< RangeValueType, 3 > RangeType
ParameterValueType RangeValueType
Superclass::ParametersType ParametersType
Superclass::CostFunctionType CostFunctionType
SearchSpaceType::Pointer SearchSpacePointer
An image whose dimension can be specified at runtime.
SmartPointer< Self > Pointer


Generated on OURCE_DATE_EPOCH for elastix by doxygen 1.9.1 elastix logo