Home
|
Main Page
|
Modules
|
Namespace List
|
Class Hierarchy
|
Alphabetical List
|
Data Structures
|
File List
|
Namespace Members
|
Data Fields
|
Globals
|
Related Pages
src
Components
Metrics
AdvancedMeanSquares
elxAdvancedMeanSquaresMetric.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 __elxAdvancedMeanSquaresMetric_H__
16
#define __elxAdvancedMeanSquaresMetric_H__
17
18
#include "
elxIncludes.h
"
19
#include "
itkAdvancedMeanSquaresImageToImageMetric.h
"
20
21
#include "
elxTimer.h
"
22
23
namespace
elastix
24
{
25
using namespace
itk;
26
44
template
<
class
TElastix >
45
class
AdvancedMeanSquaresMetric
:
46
public
47
AdvancedMeanSquaresImageToImageMetric
<
48
ITK_TYPENAME MetricBase<TElastix>::FixedImageType,
49
ITK_TYPENAME MetricBase<TElastix>::MovingImageType >,
50
public
MetricBase
<TElastix>
51
{
52
public
:
53
55
typedef
AdvancedMeanSquaresMetric
Self
;
56
typedef
AdvancedMeanSquaresImageToImageMetric
<
57
typename
MetricBase<TElastix>::FixedImageType
,
58
typename
MetricBase<TElastix>::MovingImageType
>
Superclass1
;
59
typedef
MetricBase<TElastix>
Superclass2
;
60
typedef
SmartPointer<Self>
Pointer
;
61
typedef
SmartPointer<const Self>
ConstPointer
;
62
64
itkNewMacro(
Self
);
65
67
itkTypeMacro(
AdvancedMeanSquaresMetric
,
AdvancedMeanSquaresImageToImageMetric
);
68
73
elxClassNameMacro
(
"AdvancedMeanSquares"
);
74
76
typedef
typename
77
Superclass1::CoordinateRepresentationType
CoordinateRepresentationType
;
78
typedef
typename
Superclass1::MovingImageType
MovingImageType
;
79
typedef
typename
Superclass1::MovingImagePixelType
MovingImagePixelType
;
80
typedef
typename
Superclass1::MovingImageConstPointer
MovingImageConstPointer
;
81
typedef
typename
Superclass1::FixedImageType
FixedImageType
;
82
typedef
typename
Superclass1::FixedImageConstPointer
FixedImageConstPointer
;
83
typedef
typename
Superclass1::FixedImageRegionType
FixedImageRegionType
;
84
typedef
typename
Superclass1::TransformType
TransformType
;
85
typedef
typename
Superclass1::TransformPointer
TransformPointer
;
86
typedef
typename
Superclass1::InputPointType
InputPointType
;
87
typedef
typename
Superclass1::OutputPointType
OutputPointType
;
88
typedef
typename
Superclass1::TransformParametersType
TransformParametersType
;
89
typedef
typename
Superclass1::TransformJacobianType
TransformJacobianType
;
90
typedef
typename
Superclass1::InterpolatorType
InterpolatorType
;
91
typedef
typename
Superclass1::InterpolatorPointer
InterpolatorPointer
;
92
typedef
typename
Superclass1::RealType
RealType
;
93
typedef
typename
Superclass1::GradientPixelType
GradientPixelType
;
94
typedef
typename
Superclass1::GradientImageType
GradientImageType
;
95
typedef
typename
Superclass1::GradientImagePointer
GradientImagePointer
;
96
typedef
typename
Superclass1::GradientImageFilterType
GradientImageFilterType
;
97
typedef
typename
Superclass1::GradientImageFilterPointer
GradientImageFilterPointer
;
98
typedef
typename
Superclass1::FixedImageMaskType
FixedImageMaskType
;
99
typedef
typename
Superclass1::FixedImageMaskPointer
FixedImageMaskPointer
;
100
typedef
typename
Superclass1::MovingImageMaskType
MovingImageMaskType
;
101
typedef
typename
Superclass1::MovingImageMaskPointer
MovingImageMaskPointer
;
102
typedef
typename
Superclass1::MeasureType
MeasureType
;
103
typedef
typename
Superclass1::DerivativeType
DerivativeType
;
104
typedef
typename
Superclass1::ParametersType
ParametersType
;
105
typedef
typename
Superclass1::FixedImagePixelType
FixedImagePixelType
;
106
typedef
typename
Superclass1::MovingImageRegionType
MovingImageRegionType
;
107
typedef
typename
Superclass1::ImageSamplerType
ImageSamplerType
;
108
typedef
typename
Superclass1::ImageSamplerPointer
ImageSamplerPointer
;
109
typedef
typename
Superclass1::ImageSampleContainerType
ImageSampleContainerType
;
110
typedef
typename
111
Superclass1::ImageSampleContainerPointer
ImageSampleContainerPointer
;
112
typedef
typename
Superclass1::FixedImageLimiterType
FixedImageLimiterType
;
113
typedef
typename
Superclass1::MovingImageLimiterType
MovingImageLimiterType
;
114
typedef
typename
115
Superclass1::FixedImageLimiterOutputType
FixedImageLimiterOutputType
;
116
typedef
typename
117
Superclass1::MovingImageLimiterOutputType
MovingImageLimiterOutputType
;
118
typedef
typename
119
Superclass1::MovingImageDerivativeScalesType
MovingImageDerivativeScalesType
;
120
122
itkStaticConstMacro( FixedImageDimension,
unsigned
int
,
123
FixedImageType::ImageDimension );
124
126
itkStaticConstMacro( MovingImageDimension,
unsigned
int
,
127
MovingImageType::ImageDimension );
128
130
typedef
typename
Superclass2::ElastixType
ElastixType
;
131
typedef
typename
Superclass2::ElastixPointer
ElastixPointer
;
132
typedef
typename
Superclass2::ConfigurationType
ConfigurationType
;
133
typedef
typename
Superclass2::ConfigurationPointer
ConfigurationPointer
;
134
typedef
typename
Superclass2::RegistrationType
RegistrationType
;
135
typedef
typename
Superclass2::RegistrationPointer
RegistrationPointer
;
136
typedef
typename
Superclass2::ITKBaseType
ITKBaseType
;
137
139
typedef
tmr::Timer
TimerType
;
141
typedef
TimerType::Pointer
TimerPointer
;
142
146
virtual
void
Initialize(
void
) throw (ExceptionObject);
147
153
virtual
void
BeforeEachResolution(
void
);
154
155
protected:
156
158
AdvancedMeanSquaresMetric
(){};
160
virtual
~AdvancedMeanSquaresMetric
() {}
161
162
private
:
163
165
AdvancedMeanSquaresMetric
(
const
Self& );
// purposely not implemented
167
void
operator=(
const
Self& );
// purposely not implemented
168
169
};
// end class AdvancedMeanSquaresMetric
170
171
172
}
// end namespace elastix
173
174
175
#ifndef ITK_MANUAL_INSTANTIATION
176
#include "elxAdvancedMeanSquaresMetric.hxx"
177
#endif
178
179
#endif // end #ifndef __elxAdvancedMeanSquaresMetric_H__
180
Generated on 27-06-2013 for elastix by
1.8.3.1