Home
|
Main Page
|
Modules
|
Namespace List
|
Class Hierarchy
|
Alphabetical List
|
Data Structures
|
File List
|
Namespace Members
|
Data Fields
|
Globals
|
Related Pages
src
Components
ImageSamplers
Grid
elxGridSampler.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
15
#ifndef __elxGridSampler_h
16
#define __elxGridSampler_h
17
18
#include "
itkImageGridSampler.h
"
19
#include "
elxIncludes.h
"
20
21
namespace
elastix
22
{
23
24
using namespace
itk;
25
47
template
<
class
TElastix >
48
class
GridSampler
:
49
public
50
ImageGridSampler
<
51
ITK_TYPENAME elx::ImageSamplerBase<TElastix>::InputImageType >,
52
public
53
elx::ImageSamplerBase
<TElastix>
54
{
55
public
:
56
58
typedef
GridSampler
Self
;
59
typedef
ImageGridSampler
<
60
typename
elx::ImageSamplerBase<TElastix>::InputImageType
>
Superclass1
;
61
typedef
elx::ImageSamplerBase<TElastix>
Superclass2
;
62
typedef
SmartPointer<Self>
Pointer
;
63
typedef
SmartPointer<const Self>
ConstPointer
;
64
66
itkNewMacro(
Self
);
67
69
itkTypeMacro(
GridSampler
,
ImageGridSampler
);
70
75
elxClassNameMacro
(
"Grid"
);
76
78
typedef
typename
Superclass1::DataObjectPointer
DataObjectPointer
;
79
typedef
typename
Superclass1::OutputVectorContainerType
OutputVectorContainerType
;
80
typedef
typename
Superclass1::OutputVectorContainerPointer
OutputVectorContainerPointer
;
81
typedef
typename
Superclass1::InputImageType
InputImageType
;
82
typedef
typename
Superclass1::InputImagePointer
InputImagePointer
;
83
typedef
typename
Superclass1::InputImageConstPointer
InputImageConstPointer
;
84
typedef
typename
Superclass1::InputImageRegionType
InputImageRegionType
;
85
typedef
typename
Superclass1::InputImagePixelType
InputImagePixelType
;
86
typedef
typename
Superclass1::ImageSampleType
ImageSampleType
;
87
typedef
typename
Superclass1::ImageSampleContainerType
ImageSampleContainerType
;
88
typedef
typename
Superclass1::MaskType
MaskType
;
89
typedef
typename
Superclass1::InputImageIndexType
InputImageIndexType
;
90
typedef
typename
Superclass1::InputImagePointType
InputImagePointType
;
91
typedef
typename
Superclass1::SampleGridSpacingType
GridSpacingType
;
92
typedef
typename
Superclass1::SampleGridSpacingValueType
SampleGridSpacingValueType
;
93
95
itkStaticConstMacro( InputImageDimension,
unsigned
int
, Superclass1::InputImageDimension );
96
98
typedef
typename
Superclass2::ElastixType
ElastixType
;
99
typedef
typename
Superclass2::ElastixPointer
ElastixPointer
;
100
typedef
typename
Superclass2::ConfigurationType
ConfigurationType
;
101
typedef
typename
Superclass2::ConfigurationPointer
ConfigurationPointer
;
102
typedef
typename
Superclass2::RegistrationType
RegistrationType
;
103
typedef
typename
Superclass2::RegistrationPointer
RegistrationPointer
;
104
typedef
typename
Superclass2::ITKBaseType
ITKBaseType
;
105
109
virtual
void
BeforeEachResolution(
void
);
110
111
protected
:
112
114
GridSampler
() {}
116
virtual
~GridSampler
() {}
117
118
private
:
119
121
GridSampler
(
const
Self& );
// purposely not implemented
123
void
operator=(
const
Self& );
// purposely not implemented
124
125
};
// end class GridSampler
126
127
128
}
// end namespace elastix
129
130
#ifndef ITK_MANUAL_INSTANTIATION
131
#include "elxGridSampler.hxx"
132
#endif
133
134
#endif // end #ifndef __elxGridSampler_h
135
Generated on 27-06-2013 for elastix by
1.8.3.1