Home
|
Main Page
|
Modules
|
Namespace List
|
Class Hierarchy
|
Alphabetical List
|
Data Structures
|
File List
|
Namespace Members
|
Data Fields
|
Globals
|
Related Pages
src
Components
Metrics
DisplacementMagnitudePenalty
elxDisplacementMagnitudePenalty.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 __elxDisplacementMagnitudePenalty_H__
15
#define __elxDisplacementMagnitudePenalty_H__
16
17
#include "
elxIncludes.h
"
18
#include "
itkDisplacementMagnitudePenaltyTerm.h
"
19
20
#include "
elxTimer.h
"
21
22
namespace
elastix
23
{
24
using namespace
itk;
25
43
template
<
class
TElastix >
44
class
DisplacementMagnitudePenalty
:
45
public
46
DisplacementMagnitudePenaltyTerm
<
47
ITK_TYPENAME MetricBase<TElastix>::FixedImageType,
48
double >,
49
public
MetricBase
<TElastix>
50
{
51
public
:
52
54
typedef
DisplacementMagnitudePenalty
Self
;
55
typedef
DisplacementMagnitudePenaltyTerm
<
56
typename
MetricBase<TElastix>::FixedImageType
,
57
double
>
Superclass1
;
58
typedef
MetricBase<TElastix>
Superclass2
;
59
typedef
SmartPointer<Self>
Pointer
;
60
typedef
SmartPointer<const Self>
ConstPointer
;
61
63
itkNewMacro(
Self
);
64
66
itkTypeMacro(
DisplacementMagnitudePenalty
,
DisplacementMagnitudePenaltyTerm
);
67
72
elxClassNameMacro
(
"DisplacementMagnitudePenalty"
);
73
75
typedef
typename
76
Superclass1::CoordinateRepresentationType
CoordinateRepresentationType
;
77
typedef
typename
Superclass1::MovingImageType
MovingImageType
;
78
typedef
typename
Superclass1::MovingImagePixelType
MovingImagePixelType
;
79
typedef
typename
Superclass1::MovingImageConstPointer
MovingImageConstPointer
;
80
typedef
typename
Superclass1::FixedImageType
FixedImageType
;
81
typedef
typename
Superclass1::FixedImageConstPointer
FixedImageConstPointer
;
82
typedef
typename
Superclass1::FixedImageRegionType
FixedImageRegionType
;
83
typedef
typename
Superclass1::TransformType
TransformType
;
84
typedef
typename
Superclass1::TransformPointer
TransformPointer
;
85
typedef
typename
Superclass1::InputPointType
InputPointType
;
86
typedef
typename
Superclass1::OutputPointType
OutputPointType
;
87
typedef
typename
Superclass1::TransformParametersType
TransformParametersType
;
88
typedef
typename
Superclass1::TransformJacobianType
TransformJacobianType
;
89
typedef
typename
Superclass1::InterpolatorType
InterpolatorType
;
90
typedef
typename
Superclass1::InterpolatorPointer
InterpolatorPointer
;
91
typedef
typename
Superclass1::RealType
RealType
;
92
typedef
typename
Superclass1::GradientPixelType
GradientPixelType
;
93
typedef
typename
Superclass1::GradientImageType
GradientImageType
;
94
typedef
typename
Superclass1::GradientImagePointer
GradientImagePointer
;
95
typedef
typename
Superclass1::GradientImageFilterType
GradientImageFilterType
;
96
typedef
typename
Superclass1::GradientImageFilterPointer
GradientImageFilterPointer
;
97
typedef
typename
Superclass1::FixedImageMaskType
FixedImageMaskType
;
98
typedef
typename
Superclass1::FixedImageMaskPointer
FixedImageMaskPointer
;
99
typedef
typename
Superclass1::MovingImageMaskType
MovingImageMaskType
;
100
typedef
typename
Superclass1::MovingImageMaskPointer
MovingImageMaskPointer
;
101
typedef
typename
Superclass1::MeasureType
MeasureType
;
102
typedef
typename
Superclass1::DerivativeType
DerivativeType
;
103
typedef
typename
Superclass1::ParametersType
ParametersType
;
104
typedef
typename
Superclass1::FixedImagePixelType
FixedImagePixelType
;
105
typedef
typename
Superclass1::MovingImageRegionType
MovingImageRegionType
;
106
typedef
typename
Superclass1::ImageSamplerType
ImageSamplerType
;
107
typedef
typename
Superclass1::ImageSamplerPointer
ImageSamplerPointer
;
108
typedef
typename
Superclass1::ImageSampleContainerType
ImageSampleContainerType
;
109
typedef
typename
110
Superclass1::ImageSampleContainerPointer
ImageSampleContainerPointer
;
111
typedef
typename
Superclass1::FixedImageLimiterType
FixedImageLimiterType
;
112
typedef
typename
Superclass1::MovingImageLimiterType
MovingImageLimiterType
;
113
typedef
typename
114
Superclass1::FixedImageLimiterOutputType
FixedImageLimiterOutputType
;
115
typedef
typename
116
Superclass1::MovingImageLimiterOutputType
MovingImageLimiterOutputType
;
117
119
itkStaticConstMacro( FixedImageDimension,
unsigned
int
,
120
FixedImageType::ImageDimension );
121
123
itkStaticConstMacro( MovingImageDimension,
unsigned
int
,
124
MovingImageType::ImageDimension );
125
127
typedef
typename
Superclass2::ElastixType
ElastixType
;
128
typedef
typename
Superclass2::ElastixPointer
ElastixPointer
;
129
typedef
typename
Superclass2::ConfigurationType
ConfigurationType
;
130
typedef
typename
Superclass2::ConfigurationPointer
ConfigurationPointer
;
131
typedef
typename
Superclass2::RegistrationType
RegistrationType
;
132
typedef
typename
Superclass2::RegistrationPointer
RegistrationPointer
;
133
typedef
typename
Superclass2::ITKBaseType
ITKBaseType
;
134
136
typedef
tmr::Timer
TimerType
;
138
typedef
TimerType::Pointer
TimerPointer
;
139
143
virtual
void
Initialize(
void
) throw (ExceptionObject);
144
145
protected:
146
148
DisplacementMagnitudePenalty
(){};
149
151
virtual
~DisplacementMagnitudePenalty
() {}
152
153
private
:
154
156
DisplacementMagnitudePenalty
(
const
Self& );
// purposely not implemented
158
void
operator=(
const
Self& );
// purposely not implemented
159
160
};
// end class DisplacementMagnitudePenalty
161
162
163
}
// end namespace elastix
164
165
166
#ifndef ITK_MANUAL_INSTANTIATION
167
#include "elxDisplacementMagnitudePenalty.hxx"
168
#endif
169
170
#endif // end #ifndef __elxDisplacementMagnitudePenalty_H__
171
Generated on 21-03-2014 for elastix by
1.8.1.2