go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
elxAffineLogStackTransform.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 ELXAFFINELOGSTACKTRANSFORM_H
20 #define ELXAFFINELOGSTACKTRANSFORM_H
21 
24 #include "itkStackTransform.h"
25 #include "../AffineLogTransform/itkAffineLogTransform.h"
26 
27 #include "elxIncludes.h"
28 
29 namespace elastix
30 {
31 
40 template< class TElastix >
43  typename elx::TransformBase< TElastix >::CoordRepType,
44  elx::TransformBase< TElastix >::FixedImageDimension >,
45  public elx::TransformBase< TElastix >
46 {
47 public:
48 
55  typedef itk::SmartPointer< Self > Pointer;
56  typedef itk::SmartPointer< const Self > ConstPointer;
57 
59  itkNewMacro( Self );
60 
63 
68  elxClassNameMacro( "AffineLogStackTransform" );
69 
71  itkStaticConstMacro( SpaceDimension, unsigned int, Superclass2::FixedImageDimension );
72  itkStaticConstMacro( ReducedSpaceDimension, unsigned int, Superclass2::FixedImageDimension - 1 );
73 
75  itkGetStaticConstMacro( SpaceDimension ) > AffineLogTransformType;
78 
80  typedef itk::AffineLogTransform< typename elx::TransformBase< TElastix >::CoordRepType,
81  itkGetStaticConstMacro( ReducedSpaceDimension ) > ReducedDimensionAffineLogTransformBaseType;
83 
86 
88  typedef itk::StackTransform<
89  typename elx::TransformBase< TElastix >::CoordRepType,
90  itkGetStaticConstMacro( SpaceDimension ),
91  itkGetStaticConstMacro( SpaceDimension ) > AffineLogStackTransformType;
93 
97 
110 
112  typedef float PixelType;
113  typedef itk::Image< PixelType,
114  itkGetStaticConstMacro( ReducedSpaceDimension ) > ReducedDimensionImageType;
115  typedef itk::ImageRegion<
116  itkGetStaticConstMacro( ReducedSpaceDimension ) > ReducedDimensionRegionType;
117  typedef typename ReducedDimensionImageType::PointType ReducedDimensionPointType;
118  typedef typename ReducedDimensionImageType::SizeType ReducedDimensionSizeType;
119  typedef typename ReducedDimensionRegionType::IndexType ReducedDimensionIndexType;
120  typedef typename ReducedDimensionImageType::SpacingType ReducedDimensionSpacingType;
121  typedef typename ReducedDimensionImageType::DirectionType ReducedDimensionDirectionType;
122  typedef typename ReducedDimensionImageType::PointType ReducedDimensionOriginType;
123 
126 
128  typedef typename FixedImageType::IndexType IndexType;
129  typedef typename FixedImageType::SizeType SizeType;
130  typedef typename FixedImageType::PointType PointType;
131  typedef typename FixedImageType::SpacingType SpacingType;
132  typedef typename FixedImageType::RegionType RegionType;
133  typedef typename FixedImageType::DirectionType DirectionType;
134  typedef typename itk::ContinuousIndex< CoordRepType, ReducedSpaceDimension > ReducedDimensionContinuousIndexType;
135  typedef typename itk::ContinuousIndex< CoordRepType, SpaceDimension > ContinuousIndexType;
136 
139  virtual int BeforeAll( void );
140 
146  virtual void BeforeRegistration( void );
147 
149  virtual void InitializeTransform( void );
150 
158  virtual void SetScales( void );
159 
161  virtual void ReadFromFile( void );
162 
164  virtual void WriteToFile( const ParametersType & param ) const;
165 
166 protected:
167 
170 
173 
179  virtual bool ReadCenterOfRotationIndex( ReducedDimensionInputPointType & rotationPoint ) const;
180 
186  virtual bool ReadCenterOfRotationPoint( ReducedDimensionInputPointType & rotationPoint ) const;
187 
188 private:
189 
191  AffineLogStackTransform( const Self & ); // purposely not implemented
192  void operator=( const Self & ); // purposely not implemented
193 
195  AffineLogStackTransformPointer m_AffineLogStackTransform;
196 
198  ReducedDimensionAffineLogTransformBasePointer m_AffineLogDummySubTransform;
199 
203 
205  unsigned int InitializeAffineLogTransform();
206 
207 };
208 
209 } // end namespace elastix
210 
211 #ifndef ITK_MANUAL_INSTANTIATION
212 #include "elxAffineLogStackTransform.hxx"
213 #endif
214 
215 #endif // ELXAFFINELOGSTACKTRANSFORM_H
This class combines two transforms: an &#39;initial transform&#39; with a &#39;current transform&#39;.
Superclass::RegistrationPointer RegistrationPointer
virtual void BeforeRegistration(void)
virtual bool ReadCenterOfRotationPoint(ReducedDimensionInputPointType &rotationPoint) const
virtual void ReadFromFile(void)
Superclass2::ElastixPointer ElastixPointer
Superclass2::FixedImageType FixedImageType
AffineLogTransformType::Pointer AffineLogTransformPointer
Superclass2::MovingImageType MovingImageType
virtual void WriteToFile(void) const
ReducedDimensionImageType::SizeType ReducedDimensionSizeType
ReducedDimensionImageType::SpacingType ReducedDimensionSpacingType
itk::Image< PixelType, itkGetStaticConstMacro(ReducedSpaceDimension) > ReducedDimensionImageType
ReducedDimensionAffineLogTransformBasePointer m_AffineLogDummySubTransform
OptimizerType::ScalesType ScalesType
AffineLogStackTransformType::Pointer AffineLogStackTransformPointer
Superclass1::ParametersType ParametersType
itk::SmartPointer< const Self > ConstPointer
Implements stack of transforms: one for every last dimension index.
ElastixType::FixedImageType FixedImageType
itk::ContinuousIndex< CoordRepType, SpaceDimension > ContinuousIndexType
itk::ContinuousIndex< CoordRepType, ReducedSpaceDimension > ReducedDimensionContinuousIndexType
itk::AffineLogTransform< typename elx::TransformBase< TElastix >::CoordRepType, itkGetStaticConstMacro(SpaceDimension) > AffineLogTransformType
Superclass2::ConfigurationType ConfigurationType
Superclass2::RegistrationPointer RegistrationPointer
itk::StackTransform< typename elx::TransformBase< TElastix >::CoordRepType, itkGetStaticConstMacro(SpaceDimension), itkGetStaticConstMacro(SpaceDimension) > AffineLogStackTransformType
Superclass::ElastixType ElastixType
Transform maps points, vectors and covariant vectors from an input space to an output space...
Superclass::InputPointType InputPointType
ReducedDimensionImageType::PointType ReducedDimensionOriginType
unsigned int InitializeAffineLogTransform()
FixedImageType::DirectionType DirectionType
ReducedDimensionAffineLogTransformBaseType::OutputVectorType ReducedDimensionOutputVectorType
ReducedDimensionAffineLogTransformBaseType::Pointer ReducedDimensionAffineLogTransformBasePointer
Superclass2::CombinationTransformType CombinationTransformType
ElastixType::MovingImageType MovingImageType
Superclass::ElastixPointer ElastixPointer
ElastixType::CoordRepType CoordRepType
Superclass::RegistrationType RegistrationType
ReducedDimensionAffineLogTransformBaseType::InputPointType ReducedDimensionInputPointType
Superclass2::ConfigurationPointer ConfigurationPointer
ReducedDimensionImageType::PointType ReducedDimensionPointType
ReducedDimensionRegionType::IndexType ReducedDimensionIndexType
Superclass::OutputVectorType OutputVectorType
Superclass::NumberOfParametersType NumberOfParametersType
itk::AffineLogTransform< typename elx::TransformBase< TElastix >::CoordRepType, itkGetStaticConstMacro(ReducedSpaceDimension) > ReducedDimensionAffineLogTransformBaseType
This class is the elastix base class for all Transforms.
virtual void InitializeTransform(void)
Superclass::ConfigurationType ConfigurationType
itk::ImageRegion< itkGetStaticConstMacro(ReducedSpaceDimension) > ReducedDimensionRegionType
elxClassNameMacro("AffineLogStackTransform")
elx::TransformBase< TElastix > Superclass2
Superclass::ConfigurationPointer ConfigurationPointer
itk::AdvancedCombinationTransform< typename elx::TransformBase< TElastix >::CoordRepType, elx::TransformBase< TElastix >::FixedImageDimension > Superclass1
Superclass2::RegistrationType RegistrationType
itkStaticConstMacro(SpaceDimension, unsigned int, Superclass2::FixedImageDimension)
Superclass1::NumberOfParametersType NumberOfParametersType
ReducedDimensionImageType::DirectionType ReducedDimensionDirectionType
An affine log transform based on the itkStackTransform.
AffineLogTransformType::InputPointType InputPointType
virtual bool ReadCenterOfRotationIndex(ReducedDimensionInputPointType &rotationPoint) const
AffineLogStackTransformPointer m_AffineLogStackTransform


Generated on OURCE_DATE_EPOCH for elastix by doxygen 1.8.13 elastix logo