Home
|
Main Page
|
Modules
|
Namespace List
|
Class Hierarchy
|
Alphabetical List
|
Data Structures
|
File List
|
Namespace Members
|
Data Fields
|
Globals
|
Related Pages
src
Components
Metrics
AdvancedNormalizedCorrelation
elxAdvancedNormalizedCorrelationMetric.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 __elxAdvancedNormalizedCorrelationMetric_H__
16
#define __elxAdvancedNormalizedCorrelationMetric_H__
17
18
#include "
elxIncludes.h
"
19
#include "
itkAdvancedNormalizedCorrelationImageToImageMetric.h
"
20
21
#include "
elxTimer.h
"
22
23
namespace
elastix
24
{
25
using namespace
itk;
26
43
template
<
class
TElastix >
44
class
AdvancedNormalizedCorrelationMetric
:
45
public
46
AdvancedNormalizedCorrelationImageToImageMetric
<
47
ITK_TYPENAME MetricBase<TElastix>::FixedImageType,
48
ITK_TYPENAME MetricBase<TElastix>::MovingImageType >,
49
public
MetricBase
<TElastix>
50
{
51
public
:
52
54
typedef
AdvancedNormalizedCorrelationMetric
Self
;
55
typedef
AdvancedNormalizedCorrelationImageToImageMetric
<
56
typename
MetricBase<TElastix>::FixedImageType
,
57
typename
MetricBase<TElastix>::MovingImageType
>
Superclass1
;
58
typedef
MetricBase<TElastix>
Superclass2
;
59
typedef
SmartPointer<Self>
Pointer
;
60
typedef
SmartPointer<const Self>
ConstPointer
;
61
63
itkNewMacro(
Self
);
64
66
itkTypeMacro(
AdvancedNormalizedCorrelationMetric
,
AdvancedNormalizedCorrelationImageToImageMetric
);
67
72
elxClassNameMacro
(
"AdvancedNormalizedCorrelation"
);
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
typedef
typename
118
Superclass1::MovingImageDerivativeScalesType
MovingImageDerivativeScalesType
;
119
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
147
virtual
void
BeforeEachResolution(
void
);
148
152
virtual
void
Initialize(
void
) throw (ExceptionObject);
153
154
protected:
155
157
AdvancedNormalizedCorrelationMetric
() {};
159
virtual
~AdvancedNormalizedCorrelationMetric
() {}
160
161
private
:
162
164
AdvancedNormalizedCorrelationMetric
(
const
Self& );
// purposely not implemented
166
void
operator=(
const
Self& );
// purposely not implemented
167
168
};
// end class AdvancedNormalizedCorrelationMetric
169
170
171
}
// end namespace elastix
172
173
174
#ifndef ITK_MANUAL_INSTANTIATION
175
#include "elxAdvancedNormalizedCorrelationMetric.hxx"
176
#endif
177
178
#endif // end #ifndef __elxAdvancedNormalizedCorrelationMetric_H__
Generated on 21-03-2014 for elastix by
1.8.1.2