Home
|
Main Page
|
Modules
|
Namespace List
|
Class Hierarchy
|
Alphabetical List
|
Data Structures
|
File List
|
Namespace Members
|
Data Fields
|
Globals
|
Related Pages
src
Components
Resamplers
CUDAResampler
elxCUDAResampler.h
Go to the documentation of this file.
1
/*======================================================================
2
3
This file is part of the elastix software.
4
5
Copyright (c) University Medical Center Utrecht. All rights reserved.
6
See src/CopyrightElastix.txt or http://elastix.isi.uu.nl/legal.php for
7
details.
8
9
This software is distributed WITHOUT ANY WARRANTY; without even
10
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11
PURPOSE. See the above copyright notices for more information.
12
13
======================================================================*/
14
#ifndef __elxCUDAResampler_h
15
#define __elxCUDAResampler_h
16
17
18
#include "
itkCUDAResampleImageFilter.h
"
19
#include "
elxIncludes.h
"
20
21
namespace
elastix
22
{
23
using namespace
itk;
24
40
template
<
class
TElastix >
41
class
CUDAResampler
:
42
public
itkCUDAResampleImageFilter
<
43
ITK_TYPENAME ResamplerBase<TElastix>::InputImageType,
44
ITK_TYPENAME ResamplerBase<TElastix>::OutputImageType,
45
ITK_TYPENAME ResamplerBase<TElastix>::CoordRepType >,
46
public
ResamplerBase
<TElastix>
47
{
48
public
:
49
51
typedef
CUDAResampler
Self
;
52
typedef
itkCUDAResampleImageFilter
<
53
typename
ResamplerBase<TElastix>::InputImageType
,
54
typename
ResamplerBase<TElastix>::OutputImageType
,
55
typename
ResamplerBase<TElastix>::CoordRepType
>
Superclass1
;
56
typedef
ResamplerBase<TElastix>
Superclass2
;
57
typedef
SmartPointer<Self>
Pointer
;
58
typedef
SmartPointer<const Self>
ConstPointer
;
59
61
itkNewMacro(
Self
);
62
64
itkTypeMacro(
CUDAResampler
,
itkCUDAResampleImageFilter
);
65
70
elxClassNameMacro
(
"CUDAResampler"
);
71
73
typedef
typename
Superclass1::InputImageType
InputImageType
;
74
typedef
typename
Superclass1::OutputImageType
OutputImageType
;
75
typedef
typename
Superclass1::InputImagePointer
InputImagePointer
;
76
typedef
typename
Superclass1::OutputImagePointer
OutputImagePointer
;
77
typedef
typename
Superclass1::InputImageRegionType
InputImageRegionType
;
78
typedef
typename
Superclass1::TransformType
TransformType
;
79
typedef
typename
Superclass1::TransformPointerType
TransformPointerType
;
80
typedef
typename
Superclass1::InterpolatorType
InterpolatorType
;
81
typedef
typename
Superclass1::InterpolatorPointerType
InterpolatePointerType
;
82
typedef
typename
Superclass1::SizeType
SizeType
;
83
typedef
typename
Superclass1::IndexType
IndexType
;
84
typedef
typename
Superclass1::PointType
PointType
;
85
typedef
typename
Superclass1::PixelType
PixelType
;
86
typedef
typename
Superclass1::OutputImageRegionType
OutputImageRegionType
;
87
typedef
typename
Superclass1::SpacingType
SpacingType
;
88
typedef
typename
Superclass1::OriginPointType
OriginPointType
;
89
typedef
typename
Superclass1::ValidTransformPointer
ValidTransformPointer
;
90
92
typedef
typename
Superclass2::ElastixType
ElastixType
;
93
typedef
typename
Superclass2::ElastixPointer
ElastixPointer
;
94
typedef
typename
Superclass2::ConfigurationType
ConfigurationType
;
95
typedef
typename
Superclass2::ConfigurationPointer
ConfigurationPointer
;
96
typedef
typename
Superclass2::RegistrationType
RegistrationType
;
97
typedef
typename
Superclass2::RegistrationPointer
RegistrationPointer
;
98
typedef
typename
Superclass2::ITKBaseType
ITKBaseType
;
99
100
/* . */
101
virtual
int
BeforeAll(
void
);
102
virtual
void
BeforeRegistration(
void
);
103
105
virtual
void
ReadFromFile(
void
);
106
108
virtual
void
WriteToFile(
void
)
const
;
109
110
protected
:
111
113
CUDAResampler
() {}
115
virtual
~CUDAResampler
() {}
116
120
virtual
void
CheckForValidConfiguration( ValidTransformPointer & bSplineTransform );
121
122
private
:
123
125
CUDAResampler
(
const
Self& );
// purposely not implemented
127
void
operator=(
const
Self& );
// purposely not implemented
128
129
};
// end class CUDAResampler
130
131
132
}
// end namespace elastix
133
134
#ifndef ITK_MANUAL_INSTANTIATION
135
#include "elxCUDAResampler.hxx"
136
#endif
137
138
#endif // end #ifndef __elxCUDAResampler_h
139
Generated on 27-06-2013 for elastix by
1.8.3.1