Home
|
Main Page
|
Modules
|
Namespace List
|
Class Hierarchy
|
Alphabetical List
|
Data Structures
|
File List
|
Namespace Members
|
Data Fields
|
Globals
|
Related Pages
Loading...
Searching...
No Matches
Components
Transforms
ExternalTransform
elxExternalTransform.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 elxExternalTransform_h
19
#define elxExternalTransform_h
20
21
#include "
elxIncludes.h
"
// include first to avoid MSVS warning
22
#include "
elxAdvancedTransformAdapter.h
"
23
#include "
elxDefaultConstruct.h
"
24
#include "
itkAdvancedCombinationTransform.h
"
25
26
namespace
elastix
27
{
28
47
template
<
class
TElastix>
48
class
ITK_TEMPLATE_EXPORT
ExternalTransform
49
:
public
itk::AdvancedCombinationTransform
<typename elx::TransformBase<TElastix>::CoordRepType,
50
elx::TransformBase<TElastix>::FixedImageDimension>
51
,
public
TransformBase
<TElastix>
52
{
53
public
:
54
ITK_DISALLOW_COPY_AND_MOVE
(
ExternalTransform
);
55
57
using
Self
=
ExternalTransform
;
58
60
using
Superclass1
=
itk::AdvancedCombinationTransform<typename elx::TransformBase<TElastix>::CoordRepType
,
61
elx::TransformBase<TElastix>::FixedImageDimension
>;
62
63
using
Superclass2
=
elx::TransformBase<TElastix>
;
64
65
using
Pointer
= itk::SmartPointer<Self>;
66
using
ConstPointer
= itk::SmartPointer<const Self>;
67
69
using
typename
Superclass2::ParameterMapType
;
70
using
typename
Superclass2::CoordRepType
;
71
73
itkNewMacro(
Self
);
74
76
itkTypeMacro(
ExternalTransform
,
itk::AdvancedCombinationTransform
);
77
82
elxClassNameMacro
(
"ExternalTransform"
);
83
85
itkStaticConstMacro
(SpaceDimension,
unsigned
int
, Superclass2::FixedImageDimension);
86
88
void
89
ReadFromFile
()
override
;
90
91
protected
:
93
ExternalTransform
();
94
96
~ExternalTransform
()
override
=
default
;
97
98
private
:
99
elxOverrideGetSelfMacro
;
100
102
ParameterMapType
103
CreateDerivedTransformParameterMap
()
const override
;
104
105
using
AdvancedTransformAdapterType
=
AdvancedTransformAdapter<CoordRepType, Superclass2::FixedImageDimension>
;
106
108
const
itk::SmartPointer<AdvancedTransformAdapterType> m_AdvancedTransformAdapter{
109
AdvancedTransformAdapterType::New()
110
};
111
};
112
113
}
// end namespace elastix
114
115
#ifndef ITK_MANUAL_INSTANTIATION
116
# include "elxExternalTransform.hxx"
117
#endif
118
119
#endif
double
elastix::AdvancedTransformAdapter
Adapts the ITK transform that is specified by AdvancedTransformAdapter::SetExternalTransform to the e...
Definition
elxAdvancedTransformAdapter.h:40
elastix::ExternalTransform
An external transform.
Definition
elxExternalTransform.h:52
elastix::ExternalTransform::AdvancedTransformAdapterType
AdvancedTransformAdapter< CoordRepType, Superclass2::FixedImageDimension > AdvancedTransformAdapterType
Definition
elxExternalTransform.h:105
elastix::ExternalTransform::Pointer
itk::SmartPointer< Self > Pointer
Definition
elxExternalTransform.h:65
elastix::ExternalTransform::ExternalTransform
ExternalTransform()
elastix::ExternalTransform::CreateDerivedTransformParameterMap
ParameterMapType CreateDerivedTransformParameterMap() const override
elastix::ExternalTransform::ITK_DISALLOW_COPY_AND_MOVE
ITK_DISALLOW_COPY_AND_MOVE(ExternalTransform)
elastix::ExternalTransform::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition
elxExternalTransform.h:66
elastix::ExternalTransform::ParameterMapType
typename TElastix::ParameterMapType ParameterMapType
Definition
elxTransformBase.h:199
elastix::ExternalTransform::elxClassNameMacro
elxClassNameMacro("ExternalTransform")
elastix::ExternalTransform::ReadFromFile
void ReadFromFile() override
elastix::ExternalTransform::~ExternalTransform
~ExternalTransform() override=default
elastix::ExternalTransform::elxOverrideGetSelfMacro
elxOverrideGetSelfMacro
Definition
elxExternalTransform.h:99
elastix::ExternalTransform::itkStaticConstMacro
itkStaticConstMacro(SpaceDimension, unsigned int, Superclass2::FixedImageDimension)
elastix::TransformBase
This class is the elastix base class for all Transforms.
Definition
elxTransformBase.h:138
elastix::TransformBase::ParameterMapType
typename TElastix::ParameterMapType ParameterMapType
Definition
elxTransformBase.h:199
itk::AdvancedCombinationTransform
This class combines two transforms: an 'initial transform' with a 'current transform'.
Definition
itkAdvancedCombinationTransform.h:57
elxAdvancedTransformAdapter.h
elxDefaultConstruct.h
elxIncludes.h
itkAdvancedCombinationTransform.h
elastix
Definition
elxDefaultConstruct.h:25
Generated on 1739326392 for elastix by
1.9.8