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