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
Common
OpenCL
Filters
itkGPUCompositeTransformBase.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 itkGPUCompositeTransformBase_h
19
#define itkGPUCompositeTransformBase_h
20
21
#include "
itkGPUTransformBase.h
"
22
#include "itkTransform.h"
23
24
namespace
itk
25
{
37
template
<
typename
TScalarType =
float
,
unsigned
int
NDimensions = 3>
38
class
ITK_TEMPLATE_EXPORT
GPUCompositeTransformBase
:
public
GPUTransformBase
39
{
40
public
:
42
using
Self
=
GPUCompositeTransformBase
;
43
using
GPUSuperclass
=
GPUTransformBase
;
44
46
itkTypeMacro(
GPUCompositeTransformBase
,
GPUSuperclass
);
47
49
using
ScalarType
=
TScalarType
;
50
using
TransformType
= Transform<TScalarType, NDimensions, NDimensions>;
51
using
TransformTypePointer
=
typename
TransformType::Pointer;
52
using
TransformTypeConstPointer
=
typename
TransformType::ConstPointer;
53
55
itkStaticConstMacro
(InputSpaceDimension,
unsigned
int
, NDimensions);
56
itkStaticConstMacro
(OutputSpaceDimension,
unsigned
int
, NDimensions);
57
59
virtual
SizeValueType
60
GetNumberOfTransforms
()
const
= 0;
61
63
virtual
const
TransformTypePointer
64
GetNthTransform
(SizeValueType n)
const
= 0;
65
68
virtual
bool
69
HasIdentityTransform
()
const
;
70
73
virtual
bool
74
HasMatrixOffsetTransform
()
const
;
75
78
virtual
bool
79
HasTranslationTransform
()
const
;
80
83
virtual
bool
84
HasBSplineTransform
()
const
;
85
88
virtual
bool
89
IsIdentityTransform
(
const
std::size_t index)
const
;
90
93
virtual
bool
94
IsMatrixOffsetTransform
(
const
std::size_t index)
const
;
95
98
virtual
bool
99
IsTranslationTransform
(
const
std::size_t index)
const
;
100
103
virtual
bool
104
IsBSplineTransform
(
const
std::size_t index)
const
;
105
106
protected
:
107
GPUCompositeTransformBase
() =
default
;
108
~GPUCompositeTransformBase
()
override
=
default
;
109
112
bool
113
GetSourceCode
(std::string & source)
const override
;
114
117
GPUDataManager::Pointer
118
GetParametersDataManager
(
const
std::size_t index)
const override
;
119
120
private
:
121
GPUCompositeTransformBase
(
const
Self
& other) =
delete
;
122
const
Self
&
123
operator=
(
const
Self
&) =
delete
;
124
128
bool
129
IsIdentityTransform
(
const
std::size_t index,
const
bool
loadSource, std::string & source)
const
;
130
135
bool
136
IsMatrixOffsetTransform
(
const
std::size_t index,
const
bool
loadSource, std::string & source)
const
;
137
141
bool
142
IsTranslationTransform
(
const
std::size_t index,
const
bool
loadSource, std::string & source)
const
;
143
147
bool
148
IsBSplineTransform
(
const
std::size_t index,
const
bool
loadSource, std::string & source)
const
;
149
};
150
151
}
// end namespace itk
152
153
#ifndef ITK_MANUAL_INSTANTIATION
154
# include "itkGPUCompositeTransformBase.hxx"
155
#endif
156
157
#endif
/* itkGPUCompositeTransformBase_h */
SmartPointer< Self >
TScalarType
itk::GPUCompositeTransformBase
Definition:
itkGPUCompositeTransformBase.h:39
itk::GPUCompositeTransformBase::GetParametersDataManager
GPUDataManager::Pointer GetParametersDataManager(const std::vcl_size_t index) const override
itk::GPUCompositeTransformBase::TransformTypeConstPointer
typename TransformType::ConstPointer TransformTypeConstPointer
Definition:
itkGPUCompositeTransformBase.h:52
itk::GPUCompositeTransformBase::HasIdentityTransform
virtual bool HasIdentityTransform() const
itk::GPUCompositeTransformBase::GetNumberOfTransforms
virtual SizeValueType GetNumberOfTransforms() const =0
itk::GPUCompositeTransformBase::GetNthTransform
virtual const TransformTypePointer GetNthTransform(SizeValueType n) const =0
itk::GPUCompositeTransformBase::IsBSplineTransform
bool IsBSplineTransform(const std::vcl_size_t index, const bool loadSource, std::string &source) const
itk::GPUCompositeTransformBase::itkStaticConstMacro
itkStaticConstMacro(InputSpaceDimension, unsigned int, NDimensions)
itk::GPUCompositeTransformBase::operator=
const Self & operator=(const Self &)=delete
itk::GPUCompositeTransformBase::HasMatrixOffsetTransform
virtual bool HasMatrixOffsetTransform() const
itk::GPUCompositeTransformBase::IsIdentityTransform
virtual bool IsIdentityTransform(const std::vcl_size_t index) const
itk::GPUCompositeTransformBase::HasBSplineTransform
virtual bool HasBSplineTransform() const
itk::GPUCompositeTransformBase::GetSourceCode
bool GetSourceCode(std::string &source) const override
itk::GPUCompositeTransformBase::HasTranslationTransform
virtual bool HasTranslationTransform() const
itk::GPUCompositeTransformBase::IsBSplineTransform
virtual bool IsBSplineTransform(const std::vcl_size_t index) const
itk::GPUCompositeTransformBase::IsIdentityTransform
bool IsIdentityTransform(const std::vcl_size_t index, const bool loadSource, std::string &source) const
itk::GPUCompositeTransformBase::TransformTypePointer
typename TransformType::Pointer TransformTypePointer
Definition:
itkGPUCompositeTransformBase.h:51
itk::GPUCompositeTransformBase::IsMatrixOffsetTransform
virtual bool IsMatrixOffsetTransform(const std::vcl_size_t index) const
itk::GPUCompositeTransformBase::IsTranslationTransform
virtual bool IsTranslationTransform(const std::vcl_size_t index) const
itk::GPUCompositeTransformBase::TransformType
Transform< TScalarType, NDimensions, NDimensions > TransformType
Definition:
itkGPUCompositeTransformBase.h:50
itk::GPUCompositeTransformBase::GPUCompositeTransformBase
GPUCompositeTransformBase(const Self &other)=delete
itk::GPUCompositeTransformBase::IsTranslationTransform
bool IsTranslationTransform(const std::vcl_size_t index, const bool loadSource, std::string &source) const
itk::GPUCompositeTransformBase::GPUCompositeTransformBase
GPUCompositeTransformBase()=default
itk::GPUCompositeTransformBase::IsMatrixOffsetTransform
bool IsMatrixOffsetTransform(const std::vcl_size_t index, const bool loadSource, std::string &source) const
itk::GPUCompositeTransformBase::itkStaticConstMacro
itkStaticConstMacro(OutputSpaceDimension, unsigned int, NDimensions)
itk::GPUCompositeTransformBase::~GPUCompositeTransformBase
~GPUCompositeTransformBase() override=default
itk::GPUTransformBase
Base class for all GPU transforms.
Definition:
itkGPUTransformBase.h:37
itkGPUTransformBase.h
itk
Definition:
itkAdvancedImageToImageMetric.h:44
Generated on Wed 12 Apr 2023 for elastix by
1.9.6