Home
|
Main Page
|
Modules
|
Namespace List
|
Class Hierarchy
|
Alphabetical List
|
Data Structures
|
File List
|
Namespace Members
|
Data Fields
|
Globals
|
Related Pages
Components
Transforms
TranslationTransform
itkTranslationTransformInitializer.h
Go to the documentation of this file.
1
/*=========================================================================
2
*
3
* Copyright UMC Utrecht and contributors
4
*
5
* Licensed under the Apache License, Version 2.0 (the "License");
6
* you may not use this file except in compliance with the License.
7
* You may obtain a copy of the License at
8
*
9
* http://www.apache.org/licenses/LICENSE-2.0.txt
10
*
11
* Unless required by applicable law or agreed to in writing, software
12
* distributed under the License is distributed on an "AS IS" BASIS,
13
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
* See the License for the specific language governing permissions and
15
* limitations under the License.
16
*
17
*=========================================================================*/
18
19
#ifndef __itkTranslationTransformInitializer_h
20
#define __itkTranslationTransformInitializer_h
21
22
#include "itkObject.h"
23
#include "itkObjectFactory.h"
24
#include "itkImageMomentsCalculator.h"
25
26
#include <iostream>
27
28
namespace
itk
29
{
30
60
template
<
class
TTransform,
61
class
TFixedImage,
62
class
TMovingImage >
63
class
TranslationTransformInitializer
:
public
Object
64
{
65
public
:
66
68
typedef
TranslationTransformInitializer
Self
;
69
typedef
Object
Superclass
;
70
typedef
SmartPointer< Self >
Pointer
;
71
typedef
SmartPointer< const Self >
ConstPointer
;
72
74
itkNewMacro(
Self
);
75
77
itkTypeMacro(
TranslationTransformInitializer
, Object );
78
80
typedef
TTransform
TransformType
;
81
typedef
typename
TransformType::Pointer
TransformPointer
;
82
84
itkStaticConstMacro
( SpaceDimension,
unsigned
int
, TransformType::SpaceDimension );
85
itkStaticConstMacro
( InputSpaceDimension,
unsigned
int
, TransformType::InputSpaceDimension );
86
itkStaticConstMacro
( OutputSpaceDimension,
unsigned
int
, TransformType::OutputSpaceDimension );
87
89
typedef
TFixedImage
FixedImageType
;
90
typedef
TMovingImage
MovingImageType
;
91
typedef
typename
FixedImageType::ConstPointer
FixedImagePointer
;
92
typedef
typename
MovingImageType::ConstPointer
MovingImagePointer
;
93
typedef
Image< unsigned char, InputSpaceDimension >
FixedMaskType
;
94
typedef
Image< unsigned char, OutputSpaceDimension >
MovingMaskType
;
95
typedef
typename
FixedMaskType::ConstPointer
FixedMaskPointer
;
96
typedef
typename
MovingMaskType::ConstPointer
MovingMaskPointer
;
97
99
typedef
ImageMomentsCalculator< FixedImageType >
FixedImageCalculatorType
;
100
typedef
ImageMomentsCalculator< MovingImageType >
MovingImageCalculatorType
;
101
102
typedef
typename
FixedImageCalculatorType::Pointer
FixedImageCalculatorPointer
;
103
typedef
typename
MovingImageCalculatorType::Pointer
MovingImageCalculatorPointer
;
104
106
typedef
typename
TransformType::InputPointType
InputPointType
;
107
109
typedef
typename
TransformType::OutputVectorType
OutputVectorType
;
110
112
itkSetObjectMacro( Transform,
TransformType
);
113
115
itkSetConstObjectMacro( FixedImage,
FixedImageType
);
116
118
itkSetConstObjectMacro( MovingImage,
MovingImageType
);
119
121
itkSetConstObjectMacro( FixedMask,
FixedMaskType
);
122
124
itkSetConstObjectMacro( MovingMask,
MovingMaskType
);
125
127
virtual
void
InitializeTransform
()
const
;
128
131
void
GeometryOn
() {
m_UseMoments
=
false
; }
132
void
MomentsOn
() {
m_UseMoments
=
true
; }
133
135
itkGetConstObjectMacro( FixedCalculator,
FixedImageCalculatorType
);
136
itkGetConstObjectMacro( MovingCalculator,
MovingImageCalculatorType
);
137
138
protected
:
139
140
TranslationTransformInitializer
();
141
~TranslationTransformInitializer
()
override
{}
142
143
void
PrintSelf
( std::ostream & os, Indent indent )
const override
;
144
145
private
:
146
147
TranslationTransformInitializer
(
const
Self
& );
// purposely not implemented
148
void
operator=
(
const
Self
& );
// purposely not implemented
149
150
TransformPointer
m_Transform
;
151
FixedImagePointer
m_FixedImage
;
152
MovingImagePointer
m_MovingImage
;
153
FixedMaskPointer
m_FixedMask
;
154
MovingMaskPointer
m_MovingMask
;
155
bool
m_UseMoments
;
156
157
FixedImageCalculatorPointer
m_FixedCalculator
;
158
MovingImageCalculatorPointer
m_MovingCalculator
;
159
160
};
161
162
}
// namespace itk
163
164
#ifndef ITK_MANUAL_INSTANTIATION
165
#include "itkTranslationTransformInitializer.hxx"
166
#endif
167
168
#endif
/* __itkTranslationTransformInitializer_h */
Image
SmartPointer< Self >
itk::TranslationTransformInitializer
TranslationTransformInitializer is a helper class intended to initialize the translation of a Transla...
Definition:
itkTranslationTransformInitializer.h:64
itk::TranslationTransformInitializer::m_Transform
TransformPointer m_Transform
Definition:
itkTranslationTransformInitializer.h:150
itk::TranslationTransformInitializer::m_FixedImage
FixedImagePointer m_FixedImage
Definition:
itkTranslationTransformInitializer.h:151
itk::TranslationTransformInitializer::Pointer
SmartPointer< Self > Pointer
Definition:
itkTranslationTransformInitializer.h:70
itk::TranslationTransformInitializer::m_MovingMask
MovingMaskPointer m_MovingMask
Definition:
itkTranslationTransformInitializer.h:154
itk::TranslationTransformInitializer::m_MovingImage
MovingImagePointer m_MovingImage
Definition:
itkTranslationTransformInitializer.h:152
itk::TranslationTransformInitializer::MovingImageCalculatorType
ImageMomentsCalculator< MovingImageType > MovingImageCalculatorType
Definition:
itkTranslationTransformInitializer.h:100
itk::TranslationTransformInitializer::TransformPointer
TransformType::Pointer TransformPointer
Definition:
itkTranslationTransformInitializer.h:81
itk::TranslationTransformInitializer::PrintSelf
void PrintSelf(std::ostream &os, Indent indent) const override
itk::TranslationTransformInitializer::InputPointType
TransformType::InputPointType InputPointType
Definition:
itkTranslationTransformInitializer.h:106
itk::TranslationTransformInitializer::~TranslationTransformInitializer
~TranslationTransformInitializer() override
Definition:
itkTranslationTransformInitializer.h:141
itk::TranslationTransformInitializer::MovingMaskPointer
MovingMaskType::ConstPointer MovingMaskPointer
Definition:
itkTranslationTransformInitializer.h:96
itk::TranslationTransformInitializer::TranslationTransformInitializer
TranslationTransformInitializer(const Self &)
itk::TranslationTransformInitializer::m_UseMoments
bool m_UseMoments
Definition:
itkTranslationTransformInitializer.h:155
itk::TranslationTransformInitializer::Self
TranslationTransformInitializer Self
Definition:
itkTranslationTransformInitializer.h:68
itk::TranslationTransformInitializer::m_FixedMask
FixedMaskPointer m_FixedMask
Definition:
itkTranslationTransformInitializer.h:153
itk::TranslationTransformInitializer::m_MovingCalculator
MovingImageCalculatorPointer m_MovingCalculator
Definition:
itkTranslationTransformInitializer.h:158
itk::TranslationTransformInitializer::OutputVectorType
TransformType::OutputVectorType OutputVectorType
Definition:
itkTranslationTransformInitializer.h:109
itk::TranslationTransformInitializer::FixedImageCalculatorType
ImageMomentsCalculator< FixedImageType > FixedImageCalculatorType
Definition:
itkTranslationTransformInitializer.h:99
itk::TranslationTransformInitializer::GeometryOn
void GeometryOn()
Definition:
itkTranslationTransformInitializer.h:131
itk::TranslationTransformInitializer::Superclass
Object Superclass
Definition:
itkTranslationTransformInitializer.h:69
itk::TranslationTransformInitializer::MovingImagePointer
MovingImageType::ConstPointer MovingImagePointer
Definition:
itkTranslationTransformInitializer.h:92
itk::TranslationTransformInitializer::InitializeTransform
virtual void InitializeTransform() const
itk::TranslationTransformInitializer::ConstPointer
SmartPointer< const Self > ConstPointer
Definition:
itkTranslationTransformInitializer.h:71
itk::TranslationTransformInitializer::TranslationTransformInitializer
TranslationTransformInitializer()
itk::TranslationTransformInitializer::FixedImageType
TFixedImage FixedImageType
Definition:
itkTranslationTransformInitializer.h:89
itk::TranslationTransformInitializer::itkStaticConstMacro
itkStaticConstMacro(SpaceDimension, unsigned int, TransformType::SpaceDimension)
itk::TranslationTransformInitializer::operator=
void operator=(const Self &)
itk::TranslationTransformInitializer::FixedMaskType
Image< unsigned char, InputSpaceDimension > FixedMaskType
Definition:
itkTranslationTransformInitializer.h:93
itk::TranslationTransformInitializer::m_FixedCalculator
FixedImageCalculatorPointer m_FixedCalculator
Definition:
itkTranslationTransformInitializer.h:157
itk::TranslationTransformInitializer::FixedMaskPointer
FixedMaskType::ConstPointer FixedMaskPointer
Definition:
itkTranslationTransformInitializer.h:95
itk::TranslationTransformInitializer::MovingImageCalculatorPointer
MovingImageCalculatorType::Pointer MovingImageCalculatorPointer
Definition:
itkTranslationTransformInitializer.h:103
itk::TranslationTransformInitializer::MovingMaskType
Image< unsigned char, OutputSpaceDimension > MovingMaskType
Definition:
itkTranslationTransformInitializer.h:94
itk::TranslationTransformInitializer::itkStaticConstMacro
itkStaticConstMacro(InputSpaceDimension, unsigned int, TransformType::InputSpaceDimension)
itk::TranslationTransformInitializer::itkStaticConstMacro
itkStaticConstMacro(OutputSpaceDimension, unsigned int, TransformType::OutputSpaceDimension)
itk::TranslationTransformInitializer::TransformType
TTransform TransformType
Definition:
itkTranslationTransformInitializer.h:80
itk::TranslationTransformInitializer::FixedImageCalculatorPointer
FixedImageCalculatorType::Pointer FixedImageCalculatorPointer
Definition:
itkTranslationTransformInitializer.h:102
itk::TranslationTransformInitializer::FixedImagePointer
FixedImageType::ConstPointer FixedImagePointer
Definition:
itkTranslationTransformInitializer.h:91
itk::TranslationTransformInitializer::MovingImageType
TMovingImage MovingImageType
Definition:
itkTranslationTransformInitializer.h:90
itk::TranslationTransformInitializer::MomentsOn
void MomentsOn()
Definition:
itkTranslationTransformInitializer.h:132
itk
Definition:
itkAdvancedImageToImageMetric.h:42
Generated on 1667476801 for elastix by
1.9.4