Home
|
Main Page
|
Modules
|
Namespace List
|
Class Hierarchy
|
Alphabetical List
|
Data Structures
|
File List
|
Namespace Members
|
Data Fields
|
Globals
|
Related Pages
Common
OpenCL
Filters
itkGPUTranslationTransformBase.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 __itkGPUTranslationTransformBase_h
19
#define __itkGPUTranslationTransformBase_h
20
21
#include "
itkGPUTransformBase.h
"
22
23
namespace
itk
24
{
26
itkGPUKernelClassMacro
( GPUTranslationTransformBaseKernel );
27
39
template
<
40
typename
TScalarType
=
float
,
// Data type for scalars
41
unsigned
int
NDimensions = 3 >
42
class
ITK_EXPORT
GPUTranslationTransformBase
:
public
GPUTransformBase
43
{
44
public
:
45
47
typedef
GPUTranslationTransformBase
Self
;
48
typedef
GPUTransformBase
GPUSuperclass
;
49
51
itkTypeMacro(
GPUTranslationTransformBase
,
GPUSuperclass
);
52
54
bool
IsTranslationTransform
(
void
)
const override
{
return
true
; }
55
57
typedef
TScalarType
ScalarType
;
58
60
itkStaticConstMacro
( SpaceDimension,
unsigned
int
, NDimensions );
61
itkStaticConstMacro
( ParametersDimension,
unsigned
int
, NDimensions );
62
64
typedef
Vector< TScalarType, NDimensions >
CPUOutputVectorType
;
65
67
virtual
const
CPUOutputVectorType
&
GetCPUOffset
(
void
)
const
= 0;
68
69
protected
:
70
71
GPUTranslationTransformBase
();
72
~GPUTranslationTransformBase
()
override
{}
73
76
bool
GetSourceCode
( std::string & source )
const override
;
77
79
GPUDataManager::Pointer
GetParametersDataManager
(
void
)
const override
;
80
81
private
:
82
83
GPUTranslationTransformBase
(
const
Self
& other );
// purposely not implemented
84
const
Self
&
operator=
(
const
Self
& );
// purposely not implemented
85
86
std::vector< std::string >
m_Sources
;
87
};
88
89
}
// end namespace itk
90
91
#ifndef ITK_MANUAL_INSTANTIATION
92
#include "itkGPUTranslationTransformBase.hxx"
93
#endif
94
95
#endif
/* itkGPUTranslationTransformBase_h */
SmartPointer< Self >
TScalarType
float
itk::GPUTransformBase
Base class for all GPU transforms.
Definition:
itkGPUTransformBase.h:37
itk::GPUTranslationTransformBase
Base class for all GPU translation transforms.
Definition:
itkGPUTranslationTransformBase.h:43
itk::GPUTranslationTransformBase::itkStaticConstMacro
itkStaticConstMacro(SpaceDimension, unsigned int, NDimensions)
itk::GPUTranslationTransformBase::ScalarType
TScalarType ScalarType
Definition:
itkGPUTranslationTransformBase.h:57
itk::GPUTranslationTransformBase::GetCPUOffset
virtual const CPUOutputVectorType & GetCPUOffset(void) const =0
itk::GPUTranslationTransformBase::GetParametersDataManager
GPUDataManager::Pointer GetParametersDataManager(void) const override
itk::GPUTranslationTransformBase::itkStaticConstMacro
itkStaticConstMacro(ParametersDimension, unsigned int, NDimensions)
itk::GPUTranslationTransformBase::m_Sources
std::vector< std::string > m_Sources
Definition:
itkGPUTranslationTransformBase.h:86
itk::GPUTranslationTransformBase::GPUSuperclass
GPUTransformBase GPUSuperclass
Definition:
itkGPUTranslationTransformBase.h:48
itk::GPUTranslationTransformBase::GPUTranslationTransformBase
GPUTranslationTransformBase(const Self &other)
itk::GPUTranslationTransformBase::Self
GPUTranslationTransformBase Self
Definition:
itkGPUTranslationTransformBase.h:47
itk::GPUTranslationTransformBase::CPUOutputVectorType
Vector< TScalarType, NDimensions > CPUOutputVectorType
Definition:
itkGPUTranslationTransformBase.h:64
itk::GPUTranslationTransformBase::GetSourceCode
bool GetSourceCode(std::string &source) const override
itk::GPUTranslationTransformBase::GPUTranslationTransformBase
GPUTranslationTransformBase()
itk::GPUTranslationTransformBase::~GPUTranslationTransformBase
~GPUTranslationTransformBase() override
Definition:
itkGPUTranslationTransformBase.h:72
itk::GPUTranslationTransformBase::IsTranslationTransform
bool IsTranslationTransform(void) const override
Definition:
itkGPUTranslationTransformBase.h:54
itk::GPUTranslationTransformBase::operator=
const Self & operator=(const Self &)
itkGPUTransformBase.h
itk
Definition:
itkAdvancedImageToImageMetric.h:42
itk::itkGPUKernelClassMacro
itkGPUKernelClassMacro(GPUBSplineTransformKernel)
Generated on 1667476801 for elastix by
1.9.4