go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
elxElastixMain.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 elxElastixMain_h
19#define elxElastixMain_h
20
21#include "elxMainBase.h"
22
23
24namespace elastix
25{
26
68class ElastixMain : public MainBase
69{
70public:
72
76 using Pointer = itk::SmartPointer<Self>;
77 using ConstPointer = itk::SmartPointer<const Self>;
78
80 itkNewMacro(Self);
81
83 itkTypeMacro(ElastixMain, MainBase);
84
89 itkSetObjectMacro(FixedImageContainer, DataObjectContainerType);
91
96 itkSetObjectMacro(FixedMaskContainer, DataObjectContainerType);
97 itkSetObjectMacro(MovingMaskContainer, DataObjectContainerType);
100
106 itkGetModifiableObjectMacro(FinalTransform, itk::Object);
107
112 itkSetObjectMacro(InitialTransform, itk::Object);
113 itkGetModifiableObjectMacro(InitialTransform, itk::Object);
114
117 virtual void
119
120 virtual const FlatDirectionCosinesType &
122
124 void
125 SetElastixLevel(unsigned int level);
126
127 unsigned int
129
131 void
132 SetTotalNumberOfElastixLevels(unsigned int levels);
133
134 unsigned int
136
137 using Superclass::Run;
138
144 int
145 Run() override;
146
147 int
149 const ParameterMapType & inputMap,
150 const std::vector<ParameterMapType> & initialTransformParameterMaps);
151
153 virtual ParameterMapType
155
156protected:
158 ~ElastixMain() override;
159
165
168
171
176
178
183 int
184 InitDBIndex() override;
185
187 void
188 GetImageInformationFromFile(const std::string & filename, ImageDimensionType & imageDimension) const;
189};
190
191} // end namespace elastix
192
193#endif // end #ifndef elxElastixMain_h
A class with all functionality to configure elastix.
void SetElastixLevel(unsigned int level)
itk::SmartPointer< const Self > ConstPointer
itkGetModifiableObjectMacro(InitialTransform, itk::Object)
DataObjectContainerPointer m_MovingMaskContainer
itk::SmartPointer< Self > Pointer
~ElastixMain() override
ParameterMapType m_TransformParameterMap
int RunWithInitialTransformParameterMaps(const ArgumentMapType &argmap, const ParameterMapType &inputMap, const std::vector< ParameterMapType > &initialTransformParameterMaps)
unsigned int GetTotalNumberOfElastixLevels() const
DataObjectContainerPointer m_FixedImageContainer
DataObjectContainerPointer m_FixedMaskContainer
itkGetModifiableObjectMacro(MovingMaskContainer, DataObjectContainerType)
virtual void SetOriginalFixedImageDirectionFlat(const FlatDirectionCosinesType &arg)
ITK_DISALLOW_COPY_AND_MOVE(ElastixMain)
virtual ParameterMapType GetTransformParameterMap() const
int InitDBIndex() override
itkGetModifiableObjectMacro(FixedImageContainer, DataObjectContainerType)
FlatDirectionCosinesType m_OriginalFixedImageDirection
itkGetModifiableObjectMacro(FinalTransform, itk::Object)
int Run() override
void GetImageInformationFromFile(const std::string &filename, ImageDimensionType &imageDimension) const
DataObjectContainerPointer m_ResultImageContainer
unsigned int GetElastixLevel() const
virtual const FlatDirectionCosinesType & GetOriginalFixedImageDirectionFlat() const
itkGetModifiableObjectMacro(FixedMaskContainer, DataObjectContainerType)
ObjectPointer m_FinalTransform
ObjectPointer m_InitialTransform
void SetTotalNumberOfElastixLevels(unsigned int levels)
Common (abstract) base class of ElastixMain and TransformixMain.
Definition elxMainBase.h:45
virtual int Run()=0
ElastixBase::FlatDirectionCosinesType FlatDirectionCosinesType
Definition elxMainBase.h:70
itk::ParameterMapInterface::ParameterMapType ParameterMapType
Definition elxMainBase.h:83
ElastixBase::DataObjectContainerType DataObjectContainerType
Definition elxMainBase.h:67
ElastixBase::DataObjectContainerPointer DataObjectContainerPointer
Definition elxMainBase.h:69
itk::Object::Pointer ObjectPointer
Definition elxMainBase.h:61
Configuration::CommandLineArgumentMapType ArgumentMapType
Definition elxMainBase.h:65


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