Home
|
Main Page
|
Modules
|
Namespace List
|
Class Hierarchy
|
Alphabetical List
|
Data Structures
|
File List
|
Namespace Members
|
Data Fields
|
Globals
|
Related Pages
src
elx
5.1.0
Components
Transforms
TranslationStackTransform
elxTranslationStackTransform.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 elxTranslationStackTransform_h
19
#define elxTranslationStackTransform_h
20
21
#include "
elxIncludes.h
"
// include first to avoid MSVS warning
22
#include "
itkAdvancedCombinationTransform.h
"
23
#include "
itkAdvancedTranslationTransform.h
"
24
#include "
itkTranslationStackTransform.h
"
25
26
54
namespace
elastix
55
{
56
template
<
class
TElastix>
57
class
ITK_TEMPLATE_EXPORT
TranslationStackTransform
58
:
public
itk::AdvancedCombinationTransform
<typename elx::TransformBase<TElastix>::CoordRepType,
59
elx::TransformBase<TElastix>::FixedImageDimension>
60
,
public
elx::TransformBase
<TElastix>
61
{
62
public
:
63
ITK_DISALLOW_COPY_AND_MOVE
(
TranslationStackTransform
);
64
66
using
Self
=
TranslationStackTransform
;
67
using
Superclass1
=
itk::AdvancedCombinationTransform<typename elx::TransformBase<TElastix>::CoordRepType
,
68
elx::TransformBase<TElastix>::FixedImageDimension
>;
69
using
Superclass2
=
elx::TransformBase<TElastix>
;
70
using
Pointer
= itk::SmartPointer<Self>;
71
using
ConstPointer
= itk::SmartPointer<const Self>;
72
74
itkNewMacro(
Self
);
75
77
itkTypeMacro(
TranslationStackTransform
,
itk::AdvancedCombinationTransform
);
78
83
elxClassNameMacro
(
"TranslationStackTransform"
);
84
86
itkStaticConstMacro
(SpaceDimension,
unsigned
int
, Superclass2::FixedImageDimension);
87
itkStaticConstMacro
(ReducedSpaceDimension,
unsigned
int
, Superclass2::FixedImageDimension - 1);
88
92
using
TranslationTransformType
=
93
itk::AdvancedTranslationTransform<typename elx::TransformBase<TElastix>::CoordRepType
, Self::SpaceDimension>;
94
using
TranslationTransformPointer
=
typename
TranslationTransformType::Pointer
;
95
97
using
ReducedDimensionTranslationTransformType
=
98
itk::AdvancedTranslationTransform<typename elx::TransformBase<TElastix>::CoordRepType
, Self::ReducedSpaceDimension>;
99
using
ReducedDimensionTranslationTransformPointer
=
typename
ReducedDimensionTranslationTransformType::Pointer
;
100
102
using
typename Superclass1::ParametersType;
103
using
typename Superclass1::NumberOfParametersType;
104
106
using
typename
Superclass2::ElastixType
;
107
using
typename
Superclass2::ParameterMapType
;
108
using
typename
Superclass2::RegistrationType
;
109
using
typename
Superclass2::CoordRepType
;
110
using
typename
Superclass2::FixedImageType
;
111
using
typename
Superclass2::MovingImageType
;
112
using
ITKBaseType
=
typename
Superclass2::ITKBaseType
;
113
using
CombinationTransformType
=
typename
Superclass2::CombinationTransformType
;
114
116
using
SizeType
=
typename
FixedImageType::SizeType;
117
123
int
124
BeforeAll
()
override
;
125
126
void
127
BeforeRegistration
()
override
;
128
130
void
131
ReadFromFile
()
override
;
132
133
protected
:
135
TranslationStackTransform
() { this->Superclass1::SetCurrentTransform(m_StackTransform); }
136
138
~TranslationStackTransform
()
override
=
default
;
139
140
private
:
141
elxOverrideGetSelfMacro
;
142
143
void
144
InitializeTransform
();
145
147
ParameterMapType
148
CreateDerivedTransformParametersMap
()
const override
;
149
152
using
StackTransformType
=
itk::TranslationStackTransform<SpaceDimension>
;
153
155
const
typename
StackTransformType::Pointer
m_StackTransform{ StackTransformType::New() };
156
158
ReducedDimensionTranslationTransformPointer
m_DummySubTransform
;
159
161
unsigned
int
m_NumberOfSubTransforms
;
162
double
m_StackOrigin
, m_StackSpacing;
163
164
unsigned
int
165
InitializeTranslationTransform
();
166
};
167
168
169
}
// end namespace elastix
170
171
#ifndef ITK_MANUAL_INSTANTIATION
172
# include "elxTranslationStackTransform.hxx"
173
#endif
174
175
#endif
// end #ifndef elxTranslationStackTransform_h
SmartPointer< Self >
double
elastix::BaseComponentSE::ElastixType
TElastix ElastixType
Definition:
elxBaseComponentSE.h:57
elastix::TransformBase
This class is the elastix base class for all Transforms.
Definition:
elxTransformBase.h:135
elastix::TransformBase::FixedImageType
typename TElastix::FixedImageType FixedImageType
Definition:
elxTransformBase.h:154
elastix::TransformBase::ParameterMapType
typename TElastix::ParameterMapType ParameterMapType
Definition:
elxTransformBase.h:199
elastix::TransformBase::MovingImageType
typename TElastix::MovingImageType MovingImageType
Definition:
elxTransformBase.h:155
elastix::TransformBase::RegistrationType
typename ElastixType::RegistrationBaseType RegistrationType
Definition:
elxBaseComponentSE.h:65
elastix::TranslationStackTransform
Definition:
elxTranslationStackTransform.h:61
elastix::TranslationStackTransform::CreateDerivedTransformParametersMap
ParameterMapType CreateDerivedTransformParametersMap() const override
elastix::TranslationStackTransform::ReadFromFile
void ReadFromFile() override
elastix::TranslationStackTransform::~TranslationStackTransform
~TranslationStackTransform() override=default
elastix::TranslationStackTransform::itkStaticConstMacro
itkStaticConstMacro(SpaceDimension, unsigned int, Superclass2::FixedImageDimension)
elastix::TranslationStackTransform::m_NumberOfSubTransforms
unsigned int m_NumberOfSubTransforms
Definition:
elxTranslationStackTransform.h:161
elastix::TranslationStackTransform::elxOverrideGetSelfMacro
elxOverrideGetSelfMacro
Definition:
elxTranslationStackTransform.h:141
elastix::TranslationStackTransform::InitializeTranslationTransform
unsigned int InitializeTranslationTransform()
elastix::TranslationStackTransform::TranslationTransformPointer
typename TranslationTransformType::Pointer TranslationTransformPointer
Definition:
elxTranslationStackTransform.h:94
elastix::TranslationStackTransform::ITKBaseType
typename Superclass2::ITKBaseType ITKBaseType
Definition:
elxTranslationStackTransform.h:112
elastix::TranslationStackTransform::BeforeAll
int BeforeAll() override
elastix::TranslationStackTransform::SizeType
typename FixedImageType::SizeType SizeType
Definition:
elxTranslationStackTransform.h:116
elastix::TranslationStackTransform::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition:
elxTranslationStackTransform.h:71
elastix::TranslationStackTransform::m_StackOrigin
double m_StackOrigin
Definition:
elxTranslationStackTransform.h:162
elastix::TranslationStackTransform::InitializeTransform
void InitializeTransform()
elastix::TranslationStackTransform::ParameterMapType
typename TElastix::ParameterMapType ParameterMapType
Definition:
elxTransformBase.h:199
elastix::TranslationStackTransform::elxClassNameMacro
elxClassNameMacro("TranslationStackTransform")
elastix::TranslationStackTransform::ITK_DISALLOW_COPY_AND_MOVE
ITK_DISALLOW_COPY_AND_MOVE(TranslationStackTransform)
elastix::TranslationStackTransform::CombinationTransformType
typename Superclass2::CombinationTransformType CombinationTransformType
Definition:
elxTranslationStackTransform.h:113
elastix::TranslationStackTransform::BeforeRegistration
void BeforeRegistration() override
elastix::TranslationStackTransform::itkStaticConstMacro
itkStaticConstMacro(ReducedSpaceDimension, unsigned int, Superclass2::FixedImageDimension - 1)
elastix::TranslationStackTransform::m_DummySubTransform
ReducedDimensionTranslationTransformPointer m_DummySubTransform
Definition:
elxTranslationStackTransform.h:158
elastix::TranslationStackTransform::ReducedDimensionTranslationTransformPointer
typename ReducedDimensionTranslationTransformType::Pointer ReducedDimensionTranslationTransformPointer
Definition:
elxTranslationStackTransform.h:99
elastix::TranslationStackTransform::Pointer
itk::SmartPointer< Self > Pointer
Definition:
elxTranslationStackTransform.h:70
elastix::TranslationStackTransform::TranslationStackTransform
TranslationStackTransform()
Definition:
elxTranslationStackTransform.h:135
itk::AdvancedCombinationTransform
This class combines two transforms: an 'initial transform' with a 'current transform'.
Definition:
itkAdvancedCombinationTransform.h:57
itk::AdvancedTranslationTransform
Translation transformation of a vector space (e.g. space coordinates)
Definition:
itkAdvancedTranslationTransform.h:55
itk::TranslationStackTransform
Definition:
itkTranslationStackTransform.h:30
itk::TranslationStackTransform::Pointer
itk::SmartPointer< TranslationStackTransform > Pointer
Definition:
itkTranslationStackTransform.h:39
elxIncludes.h
itkAdvancedCombinationTransform.h
itkAdvancedTranslationTransform.h
itkTranslationStackTransform.h
elastix
Definition:
elxDefaultConstruct.h:25
Generated on Wed 12 Apr 2023 for elastix by
1.9.6