Home
|
Main Page
|
Modules
|
Namespace List
|
Class Hierarchy
|
Alphabetical List
|
Data Structures
|
File List
|
Namespace Members
|
Data Fields
|
Globals
|
Related Pages
Common
OpenCL
Filters
itkGPUBSplineBaseTransform.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 __itkGPUBSplineBaseTransform_h
19
#define __itkGPUBSplineBaseTransform_h
20
21
#include "
itkGPUDataManager.h
"
22
#include "
itkGPUImage.h
"
23
#include "
itkGPUTransformBase.h
"
24
25
namespace
itk
26
{
28
itkGPUKernelClassMacro
( GPUBSplineTransformKernel );
29
41
template
<
typename
TScalarType =
float
,
unsigned
int
NDimensions = 3 >
42
class
ITK_EXPORT
GPUBSplineBaseTransform
:
public
GPUTransformBase
43
{
44
public
:
45
47
typedef
GPUBSplineBaseTransform
Self
;
48
50
itkTypeMacro(
GPUBSplineBaseTransform
,
GPUTransformBase
);
51
53
itkStaticConstMacro
( SpaceDimension,
unsigned
int
, NDimensions );
54
57
itkGetConstMacro( SplineOrder,
unsigned
int
);
58
59
typedef
GPUImage< TScalarType, NDimensions >
GPUCoefficientImageType
;
60
typedef
typename
GPUCoefficientImageType::Pointer
GPUCoefficientImagePointer
;
61
typedef
typename
GPUDataManager::Pointer
GPUDataManagerPointer
;
62
63
typedef
FixedArray< GPUCoefficientImagePointer, NDimensions >
GPUCoefficientImageArray
;
64
typedef
FixedArray< GPUDataManagerPointer, NDimensions >
GPUCoefficientImageBaseArray
;
65
67
bool
IsBSplineTransform
(
void
)
const override
{
return
true
; }
68
70
const
GPUCoefficientImageArray
GetGPUCoefficientImages
(
void
)
const
;
71
73
const
GPUCoefficientImageBaseArray
GetGPUCoefficientImagesBases
(
void
)
const
;
74
75
protected
:
76
83
virtual
void
SetSplineOrder
(
const
unsigned
int
splineOrder );
84
85
GPUBSplineBaseTransform
();
86
~GPUBSplineBaseTransform
()
override
{}
87
90
bool
GetSourceCode
( std::string & source )
const override
;
91
92
GPUCoefficientImageArray
m_GPUBSplineTransformCoefficientImages
;
93
GPUCoefficientImageBaseArray
m_GPUBSplineTransformCoefficientImagesBase
;
94
95
private
:
96
97
GPUBSplineBaseTransform
(
const
Self
& other );
// purposely not implemented
98
const
Self
&
operator=
(
const
Self
& );
// purposely not implemented
99
100
std::vector< std::string >
m_Sources
;
101
102
// User specified spline order (3rd or cubic is the default)
103
unsigned
int
m_SplineOrder
;
104
};
105
106
}
// end namespace itk
107
108
#ifndef ITK_MANUAL_INSTANTIATION
109
#include "itkGPUBSplineBaseTransform.hxx"
110
#endif
111
112
#endif
/* __itkGPUBSplineBaseTransform_h */
FixedArray< GPUCoefficientImagePointer, NDimensions >
FixedArray< GPUDataManagerPointer, NDimensions >
SmartPointer< Self >
itk::GPUBSplineBaseTransform
GPU base class for the BSplineTransform.
Definition:
itkGPUBSplineBaseTransform.h:43
itk::GPUBSplineBaseTransform::~GPUBSplineBaseTransform
~GPUBSplineBaseTransform() override
Definition:
itkGPUBSplineBaseTransform.h:86
itk::GPUBSplineBaseTransform::GPUCoefficientImageType
GPUImage< TScalarType, NDimensions > GPUCoefficientImageType
Definition:
itkGPUBSplineBaseTransform.h:59
itk::GPUBSplineBaseTransform::GPUCoefficientImageBaseArray
FixedArray< GPUDataManagerPointer, NDimensions > GPUCoefficientImageBaseArray
Definition:
itkGPUBSplineBaseTransform.h:64
itk::GPUBSplineBaseTransform::GPUCoefficientImageArray
FixedArray< GPUCoefficientImagePointer, NDimensions > GPUCoefficientImageArray
Definition:
itkGPUBSplineBaseTransform.h:63
itk::GPUBSplineBaseTransform::m_GPUBSplineTransformCoefficientImages
GPUCoefficientImageArray m_GPUBSplineTransformCoefficientImages
Definition:
itkGPUBSplineBaseTransform.h:92
itk::GPUBSplineBaseTransform::GPUBSplineBaseTransform
GPUBSplineBaseTransform()
itk::GPUBSplineBaseTransform::GPUCoefficientImagePointer
GPUCoefficientImageType::Pointer GPUCoefficientImagePointer
Definition:
itkGPUBSplineBaseTransform.h:60
itk::GPUBSplineBaseTransform::GetGPUCoefficientImagesBases
const GPUCoefficientImageBaseArray GetGPUCoefficientImagesBases(void) const
itk::GPUBSplineBaseTransform::GPUDataManagerPointer
GPUDataManager::Pointer GPUDataManagerPointer
Definition:
itkGPUBSplineBaseTransform.h:61
itk::GPUBSplineBaseTransform::Self
GPUBSplineBaseTransform Self
Definition:
itkGPUBSplineBaseTransform.h:47
itk::GPUBSplineBaseTransform::m_Sources
std::vector< std::string > m_Sources
Definition:
itkGPUBSplineBaseTransform.h:100
itk::GPUBSplineBaseTransform::m_GPUBSplineTransformCoefficientImagesBase
GPUCoefficientImageBaseArray m_GPUBSplineTransformCoefficientImagesBase
Definition:
itkGPUBSplineBaseTransform.h:93
itk::GPUBSplineBaseTransform::GetSourceCode
bool GetSourceCode(std::string &source) const override
itk::GPUBSplineBaseTransform::operator=
const Self & operator=(const Self &)
itk::GPUBSplineBaseTransform::SetSplineOrder
virtual void SetSplineOrder(const unsigned int splineOrder)
itk::GPUBSplineBaseTransform::m_SplineOrder
unsigned int m_SplineOrder
Definition:
itkGPUBSplineBaseTransform.h:103
itk::GPUBSplineBaseTransform::GPUBSplineBaseTransform
GPUBSplineBaseTransform(const Self &other)
itk::GPUBSplineBaseTransform::IsBSplineTransform
bool IsBSplineTransform(void) const override
Definition:
itkGPUBSplineBaseTransform.h:67
itk::GPUBSplineBaseTransform::GetGPUCoefficientImages
const GPUCoefficientImageArray GetGPUCoefficientImages(void) const
itk::GPUBSplineBaseTransform::itkStaticConstMacro
itkStaticConstMacro(SpaceDimension, unsigned int, NDimensions)
itk::GPUImage
Templated n-dimensional image class for the GPU.
Definition:
itkGPUImage.h:64
itk::GPUTransformBase
Base class for all GPU transforms.
Definition:
itkGPUTransformBase.h:37
itkGPUDataManager.h
itkGPUImage.h
itkGPUTransformBase.h
itk
Definition:
itkAdvancedImageToImageMetric.h:42
itk::itkGPUKernelClassMacro
itkGPUKernelClassMacro(GPUBSplineTransformKernel)
Generated on 1667476801 for elastix by
1.9.4