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
23#include <map>
24
25#include "itkNDImageBase.h"
26
27namespace elastix
28{
29
56template <class TElastix>
57class ITK_TEMPLATE_EXPORT FullSearch
59 , public OptimizerBase<TElastix>
60{
61public:
63
68 using Pointer = itk::SmartPointer<Self>;
69 using ConstPointer = itk::SmartPointer<const Self>;
70
72 itkNewMacro(Self);
73
76
81 elxClassNameMacro("FullSearch");
82
84 using Superclass1::CostFunctionType;
85 using Superclass1::CostFunctionPointer;
86 using Superclass1::ParametersType;
87 using Superclass1::MeasureType;
97
99 using typename Superclass2::ElastixType;
100 using typename Superclass2::RegistrationType;
102
106
108 using DimensionNameMapType = std::map<unsigned int, std::string>;
109 using NameIteratorType = typename DimensionNameMapType::const_iterator;
110
112 void
114
115 void
117
118 void
120
121 void
123
124 void
126
131
132protected:
134 ~FullSearch() override = default;
135
137
139
144 // virtual int CheckSearchSpaceRangeDefinition(const std::string & fullFieldName,
145 // int errorcode, unsigned int entry_nr);
146 virtual bool
147 CheckSearchSpaceRangeDefinition(const std::string & fullFieldName,
148 const bool found,
149 const unsigned int entry_nr) const;
150
151private:
153};
154
155} // end namespace elastix
156
157#ifndef ITK_MANUAL_INSTANTIATION
158# include "elxFullSearchOptimizer.hxx"
159#endif
160
161#endif // end #ifndef elxFullSearchOptimizer_h
An optimizer based on the itk::FullSearchOptimizer.
itk::SmartPointer< Self > Pointer
NDImagePointer m_OptimizationSurface
typename NDImageType::Pointer NDImagePointer
void AfterEachIteration() override
void AfterEachResolution() override
void BeforeEachResolution() override
itk::SmartPointer< const Self > ConstPointer
void AfterRegistration() override
typename Superclass2::ITKBaseType ITKBaseType
DimensionNameMapType m_SearchSpaceDimensionNames
itkGetModifiableObjectMacro(OptimizationSurface, NDImageType)
ITK_DISALLOW_COPY_AND_MOVE(FullSearch)
virtual bool CheckSearchSpaceRangeDefinition(const std::string &fullFieldName, const bool found, const unsigned int entry_nr) const
typename DimensionNameMapType::const_iterator NameIteratorType
~FullSearch() override=default
void BeforeRegistration() override
std::map< unsigned int, std::string > DimensionNameMapType
elxClassNameMacro("FullSearch")
This class is the elastix base class for all Optimizers.
typename ElastixType::RegistrationBaseType RegistrationType
An optimizer based on full search.
Array< ParameterValueType > SearchSpacePointType
ParametersType::ValueType ParameterValueType
Array< SizeValueType > SearchSpaceSizeType
SearchSpaceType::Pointer SearchSpacePointer
SearchSpaceType::ConstIterator SearchSpaceIteratorType
MapContainer< unsigned int, RangeType > SearchSpaceType
Array< IndexValueType > SearchSpaceIndexType
FixedArray< RangeValueType, 3 > RangeType
An image whose dimension can be specified at runtime.


Generated on 2024-07-17 for elastix by doxygen 1.11.0 (9b424b03c9833626cd435af22a444888fbbb192d) elastix logo