go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
elxEulerStackTransform.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 #ifndef __elxEulerStackTransform_h
19 #define __elxEulerStackTransform_h
20 
21 #include "elxIncludes.h"
24 #include "itkStackTransform.h"
25 #include "itkEulerTransform.h"
26 
27 namespace elastix
28 {
29 
80 template< class TElastix >
83  typename elx::TransformBase< TElastix >::CoordRepType,
84  elx::TransformBase< TElastix >::FixedImageDimension >,
85  public elx::TransformBase< TElastix >
86 {
87 public:
88 
95  typedef itk::SmartPointer< Self > Pointer;
96  typedef itk::SmartPointer< const Self > ConstPointer;
97 
99  itkNewMacro( Self );
100 
103 
108  elxClassNameMacro( "EulerStackTransform" );
109 
111  itkStaticConstMacro( SpaceDimension, unsigned int, Superclass2::FixedImageDimension );
112  itkStaticConstMacro( ReducedSpaceDimension, unsigned int, Superclass2::FixedImageDimension - 1 );
113 
117  typedef itk::EulerTransform<
119  itkGetStaticConstMacro( SpaceDimension ) > EulerTransformType;
122 
124  typedef itk::EulerTransform<
126  itkGetStaticConstMacro( ReducedSpaceDimension ) > ReducedDimensionEulerTransformType;
128 
131 
133  typedef itk::StackTransform<
135  itkGetStaticConstMacro( SpaceDimension ),
136  itkGetStaticConstMacro( SpaceDimension ) > EulerStackTransformType;
138 
142 
155 
157  typedef float PixelType;
158  typedef itk::Image< PixelType,
159  itkGetStaticConstMacro( ReducedSpaceDimension ) > ReducedDimensionImageType;
160  typedef itk::ImageRegion<
161  itkGetStaticConstMacro( ReducedSpaceDimension ) > ReducedDimensionRegionType;
162  typedef typename ReducedDimensionImageType::PointType ReducedDimensionPointType;
163  typedef typename ReducedDimensionImageType::SizeType ReducedDimensionSizeType;
164  typedef typename ReducedDimensionRegionType::IndexType ReducedDimensionIndexType;
165  typedef typename ReducedDimensionImageType::SpacingType ReducedDimensionSpacingType;
166  typedef typename ReducedDimensionImageType::DirectionType ReducedDimensionDirectionType;
167  typedef typename ReducedDimensionImageType::PointType ReducedDimensionOriginType;
168 
171 
173  typedef typename FixedImageType::IndexType IndexType;
174  typedef typename FixedImageType::SizeType SizeType;
175  typedef typename FixedImageType::PointType PointType;
176  typedef typename FixedImageType::SpacingType SpacingType;
177  typedef typename FixedImageType::RegionType RegionType;
178  typedef typename FixedImageType::DirectionType DirectionType;
179  typedef typename itk::ContinuousIndex< CoordRepType, ReducedSpaceDimension > ReducedDimensionContinuousIndexType;
180  typedef typename itk::ContinuousIndex< CoordRepType, SpaceDimension > ContinuousIndexType;
181 
184  virtual int BeforeAll( void );
185 
191  virtual void BeforeRegistration( void );
192 
194  virtual void InitializeTransform( void );
195 
203  virtual void SetScales( void );
204 
206  virtual void ReadFromFile( void );
207 
209  virtual void WriteToFile( const ParametersType & param ) const;
210 
213 
214 protected:
215 
218 
220  virtual ~EulerStackTransform() {}
221 
227  virtual bool ReadCenterOfRotationIndex( ReducedDimensionInputPointType & rotationPoint ) const;
228 
234  virtual bool ReadCenterOfRotationPoint( ReducedDimensionInputPointType & rotationPoint ) const;
235 
236 private:
237 
239  EulerStackTransform( const Self & ); // purposely not implemented
240  void operator=( const Self & ); // purposely not implemented
241 
244 
247 
251 
253  unsigned int InitializeEulerTransform();
254 
255 };
256 
257 
258 } // end namespace elastix
259 
260 #ifndef ITK_MANUAL_INSTANTIATION
261 #include "elxEulerStackTransform.hxx"
262 #endif
263 
264 #endif // end #ifndef __elxEulerStackTransform_h
elastix::EulerStackTransform::EulerStackTransformType
itk::StackTransform< typename elx::TransformBase< TElastix >::CoordRepType, itkGetStaticConstMacro(SpaceDimension), itkGetStaticConstMacro(SpaceDimension) > EulerStackTransformType
Definition: elxEulerStackTransform.h:136
elastix::EulerStackTransform::ReducedDimensionContinuousIndexType
itk::ContinuousIndex< CoordRepType, ReducedSpaceDimension > ReducedDimensionContinuousIndexType
Definition: elxEulerStackTransform.h:179
itkStackTransform.h
elastix::EulerStackTransform::ElastixPointer
Superclass2::ElastixPointer ElastixPointer
Definition: elxEulerStackTransform.h:145
elastix::EulerStackTransform::ReadCenterOfRotationPoint
virtual bool ReadCenterOfRotationPoint(ReducedDimensionInputPointType &rotationPoint) const
elastix::TransformBase::FixedImageType
ElastixType::FixedImageType FixedImageType
Definition: elxTransformBase.h:157
SmartPointer< Self >
elastix::EulerStackTransform::CombinationTransformType
Superclass2::CombinationTransformType CombinationTransformType
Definition: elxEulerStackTransform.h:154
elastix::EulerStackTransform::Superclass1
itk::AdvancedCombinationTransform< typename elx::TransformBase< TElastix >::CoordRepType, elx::TransformBase< TElastix >::FixedImageDimension > Superclass1
Definition: elxEulerStackTransform.h:93
elastix::TransformBase::CoordRepType
ElastixType::CoordRepType CoordRepType
Definition: elxTransformBase.h:156
elastix::EulerStackTransform::DirectionType
FixedImageType::DirectionType DirectionType
Definition: elxEulerStackTransform.h:178
elastix::EulerStackTransform::ParametersType
Superclass1::ParametersType ParametersType
Definition: elxEulerStackTransform.h:140
elastix::TransformBase::RegistrationPointer
Superclass::RegistrationPointer RegistrationPointer
Definition: elxTransformBase.h:153
elastix::EulerStackTransform::ConfigurationPointer
Superclass2::ConfigurationPointer ConfigurationPointer
Definition: elxEulerStackTransform.h:147
itkAdvancedCombinationTransform.h
elastix::EulerStackTransform::m_NumberOfSubTransforms
unsigned int m_NumberOfSubTransforms
Definition: elxEulerStackTransform.h:249
elastix::EulerStackTransform::IndexType
FixedImageType::IndexType IndexType
Definition: elxEulerStackTransform.h:173
elastix::EulerStackTransform::ReducedDimensionEulerTransformPointer
ReducedDimensionEulerTransformType::Pointer ReducedDimensionEulerTransformPointer
Definition: elxEulerStackTransform.h:127
elastix::EulerStackTransform::SetScales
virtual void SetScales(void)
elastix::EulerStackTransform::EulerTransformType
itk::EulerTransform< typename elx::TransformBase< TElastix >::CoordRepType, itkGetStaticConstMacro(SpaceDimension) > EulerTransformType
Definition: elxEulerStackTransform.h:119
elastix::EulerStackTransform::RegionType
FixedImageType::RegionType RegionType
Definition: elxEulerStackTransform.h:177
elastix::EulerStackTransform::InitializeEulerTransform
unsigned int InitializeEulerTransform()
elastix::EulerStackTransform::Superclass2
elx::TransformBase< TElastix > Superclass2
Definition: elxEulerStackTransform.h:94
elastix::EulerStackTransform::EulerStackTransform
EulerStackTransform(const Self &)
elastix::EulerStackTransform::itkStaticConstMacro
itkStaticConstMacro(ReducedSpaceDimension, unsigned int, Superclass2::FixedImageDimension - 1)
elastix::EulerStackTransform::MovingImageType
Superclass2::MovingImageType MovingImageType
Definition: elxEulerStackTransform.h:152
itk::EulerTransform::InputPointType
Superclass::InputPointType InputPointType
Definition: itkEulerTransform.h:172
itk::AdvancedCombinationTransform::ParametersType
Superclass::ParametersType ParametersType
Definition: itkAdvancedCombinationTransform.h:79
itk::AdvancedCombinationTransform
This class combines two transforms: an 'initial transform' with a 'current transform'.
Definition: itkAdvancedCombinationTransform.h:58
elastix::EulerStackTransform::ReducedDimensionImageType
itk::Image< PixelType, itkGetStaticConstMacro(ReducedSpaceDimension) > ReducedDimensionImageType
Definition: elxEulerStackTransform.h:159
elastix::TransformBase::MovingImageType
ElastixType::MovingImageType MovingImageType
Definition: elxTransformBase.h:158
itkEulerTransform.h
elastix::EulerStackTransform::BeforeAll
virtual int BeforeAll(void)
elastix::TransformBase::ElastixType
Superclass::ElastixType ElastixType
Definition: elxTransformBase.h:141
elastix::EulerStackTransform::InputPointType
EulerTransformType::InputPointType InputPointType
Definition: elxEulerStackTransform.h:121
elastix::EulerStackTransform::CoordRepType
Superclass2::CoordRepType CoordRepType
Definition: elxEulerStackTransform.h:150
elastix::EulerStackTransform::BeforeRegistration
virtual void BeforeRegistration(void)
elastix::EulerStackTransform::ElastixType
Superclass2::ElastixType ElastixType
Definition: elxEulerStackTransform.h:144
elastix::EulerStackTransform::RegistrationType
Superclass2::RegistrationType RegistrationType
Definition: elxEulerStackTransform.h:148
elastix::EulerStackTransform::m_EulerDummySubTransform
ReducedDimensionEulerTransformPointer m_EulerDummySubTransform
Definition: elxEulerStackTransform.h:246
itk::AdvancedTransform
Transform maps points, vectors and covariant vectors from an input space to an output space.
Definition: itkAdvancedTransform.h:87
elastix::EulerStackTransform::WriteToFile
virtual void WriteToFile(const ParametersType &param) const
elastix::TransformBase::ElastixPointer
Superclass::ElastixPointer ElastixPointer
Definition: elxTransformBase.h:145
elastix::EulerStackTransform
A stack transform based on the itk EulerTransforms.
Definition: elxEulerStackTransform.h:86
elastix::EulerStackTransform::ReducedDimensionDirectionType
ReducedDimensionImageType::DirectionType ReducedDimensionDirectionType
Definition: elxEulerStackTransform.h:166
elastix::EulerStackTransform::ITKBaseType
Superclass2::ITKBaseType ITKBaseType
Definition: elxEulerStackTransform.h:153
elastix::EulerStackTransform::ReducedDimensionEulerTransformType
itk::EulerTransform< typename elx::TransformBase< TElastix >::CoordRepType, itkGetStaticConstMacro(ReducedSpaceDimension) > ReducedDimensionEulerTransformType
Definition: elxEulerStackTransform.h:126
elastix::EulerStackTransform::~EulerStackTransform
virtual ~EulerStackTransform()
Definition: elxEulerStackTransform.h:220
itk::StackTransform
Implements stack of transforms: one for every last dimension index.
Definition: itkStackTransform.h:42
elastix::EulerStackTransform::ReducedDimensionSpacingType
ReducedDimensionImageType::SpacingType ReducedDimensionSpacingType
Definition: elxEulerStackTransform.h:165
elastix::EulerStackTransform::ReducedDimensionInputPointType
ReducedDimensionEulerTransformType::InputPointType ReducedDimensionInputPointType
Definition: elxEulerStackTransform.h:130
itk::EulerTransform::OutputVectorType
Superclass::OutputVectorType OutputVectorType
Definition: itkEulerTransform.h:175
elastix::EulerStackTransform::PixelType
float PixelType
Definition: elxEulerStackTransform.h:157
elastix::EulerStackTransform::ReducedDimensionPointType
ReducedDimensionImageType::PointType ReducedDimensionPointType
Definition: elxEulerStackTransform.h:162
elastix::EulerStackTransform::ReducedDimensionIndexType
ReducedDimensionRegionType::IndexType ReducedDimensionIndexType
Definition: elxEulerStackTransform.h:164
elxIncludes.h
elastix::EulerStackTransform::Pointer
itk::SmartPointer< Self > Pointer
Definition: elxEulerStackTransform.h:95
elastix::EulerStackTransform::NumberOfParametersType
Superclass1::NumberOfParametersType NumberOfParametersType
Definition: elxEulerStackTransform.h:141
itk::AdvancedCombinationTransform::NumberOfParametersType
Superclass::NumberOfParametersType NumberOfParametersType
Definition: itkAdvancedCombinationTransform.h:82
elastix::EulerStackTransform::SpacingType
FixedImageType::SpacingType SpacingType
Definition: elxEulerStackTransform.h:176
elastix::EulerStackTransform::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition: elxEulerStackTransform.h:96
elastix::EulerStackTransform::ConfigurationType
Superclass2::ConfigurationType ConfigurationType
Definition: elxEulerStackTransform.h:146
elastix::EulerStackTransform::itkStaticConstMacro
itkStaticConstMacro(SpaceDimension, unsigned int, Superclass2::FixedImageDimension)
itk::EulerTransform
This class combines the Euler2DTransform with the Euler3DTransform.
Definition: itkEulerTransform.h:144
elastix::EulerStackTransform::ReadFromFile
virtual void ReadFromFile(void)
elastix::EulerStackTransform::operator=
void operator=(const Self &)
elastix::EulerStackTransform::EulerTransformPointer
EulerTransformType::Pointer EulerTransformPointer
Definition: elxEulerStackTransform.h:120
elastix::EulerStackTransform::Self
EulerStackTransform Self
Definition: elxEulerStackTransform.h:90
elastix::EulerStackTransform::ReadCenterOfRotationIndex
virtual bool ReadCenterOfRotationIndex(ReducedDimensionInputPointType &rotationPoint) const
elastix::EulerStackTransform::RegistrationPointer
Superclass2::RegistrationPointer RegistrationPointer
Definition: elxEulerStackTransform.h:149
elastix::EulerStackTransform::ScalesType
Superclass2::ScalesType ScalesType
Definition: elxEulerStackTransform.h:170
elastix::TransformBase::ConfigurationType
Superclass::ConfigurationType ConfigurationType
Definition: elxTransformBase.h:146
elastix::EulerStackTransform::ReducedDimensionRegionType
itk::ImageRegion< itkGetStaticConstMacro(ReducedSpaceDimension) > ReducedDimensionRegionType
Definition: elxEulerStackTransform.h:161
elastix::EulerStackTransform::SizeType
FixedImageType::SizeType SizeType
Definition: elxEulerStackTransform.h:174
elastix::EulerStackTransform::ReducedDimensionOutputVectorType
ReducedDimensionEulerTransformType::OutputVectorType ReducedDimensionOutputVectorType
Definition: elxEulerStackTransform.h:129
elastix::TransformBase::ScalesType
OptimizerType::ScalesType ScalesType
Definition: elxTransformBase.h:204
elastix::TransformBase::ConfigurationPointer
Superclass::ConfigurationPointer ConfigurationPointer
Definition: elxTransformBase.h:147
elastix::EulerStackTransform::EulerStackTransformPointer
EulerStackTransformType::Pointer EulerStackTransformPointer
Definition: elxEulerStackTransform.h:137
elastix::EulerStackTransform::FixedImageType
Superclass2::FixedImageType FixedImageType
Definition: elxEulerStackTransform.h:151
elastix::EulerStackTransform::InitializeTransform
virtual void InitializeTransform(void)
elastix::EulerStackTransform::ContinuousIndexType
itk::ContinuousIndex< CoordRepType, SpaceDimension > ContinuousIndexType
Definition: elxEulerStackTransform.h:180
elastix::EulerStackTransform::m_EulerStackTransform
EulerStackTransformPointer m_EulerStackTransform
Definition: elxEulerStackTransform.h:243
elastix::EulerStackTransform::m_StackOrigin
double m_StackOrigin
Definition: elxEulerStackTransform.h:250
elastix::TransformBase
This class is the elastix base class for all Transforms.
Definition: elxTransformBase.h:133
elastix::EulerStackTransform::ReducedDimensionOriginType
ReducedDimensionImageType::PointType ReducedDimensionOriginType
Definition: elxEulerStackTransform.h:167
elastix::EulerStackTransform::EulerStackTransform
EulerStackTransform()
elastix
Definition: elxFixedGenericPyramid.h:25
elastix::EulerStackTransform::m_StackSpacing
double m_StackSpacing
Definition: elxEulerStackTransform.h:250
elastix::EulerStackTransform::InitialTransformCenter
virtual void InitialTransformCenter(ReducedDimensionInputPointType &point)
elastix::EulerStackTransform::ReducedDimensionSizeType
ReducedDimensionImageType::SizeType ReducedDimensionSizeType
Definition: elxEulerStackTransform.h:163
elastix::EulerStackTransform::elxClassNameMacro
elxClassNameMacro("EulerStackTransform")
elastix::EulerStackTransform::PointType
FixedImageType::PointType PointType
Definition: elxEulerStackTransform.h:175
elastix::TransformBase::RegistrationType
Superclass::RegistrationType RegistrationType
Definition: elxTransformBase.h:152


Generated on OURCE_DATE_EPOCH for elastix by doxygen 1.8.18 elastix logo