go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
elxTranslationStackTransform.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 __elxTranslationStackTransform_h
19 #define __elxTranslationStackTransform_h
20 
21 #include "elxIncludes.h" // include first to avoid MSVS warning
24 #include "itkStackTransform.h"
25 
26 
54 namespace elastix
55 {
56 template< class TElastix >
59  typename elx::TransformBase< TElastix >::CoordRepType,
60  elx::TransformBase< TElastix >::FixedImageDimension >,
61  public elx::TransformBase< TElastix >
62 {
63 public:
64 
71  typedef itk::SmartPointer< Self > Pointer;
72  typedef itk::SmartPointer< const Self > ConstPointer;
73 
75  itkNewMacro( Self );
76 
79 
84  elxClassNameMacro( "TranslationStackTransform" );
85 
87  itkStaticConstMacro( SpaceDimension, unsigned int, Superclass2::FixedImageDimension );
88  itkStaticConstMacro( ReducedSpaceDimension, unsigned int, Superclass2::FixedImageDimension - 1 );
89 
94  typename elx::TransformBase< TElastix >::CoordRepType,
95  itkGetStaticConstMacro( SpaceDimension ) > TranslationTransformType;
97 
100  typename elx::TransformBase< TElastix >::CoordRepType,
101  itkGetStaticConstMacro( ReducedSpaceDimension ) > ReducedDimensionTranslationTransformType;
103 
105  typedef itk::StackTransform<
106  typename elx::TransformBase< TElastix >::CoordRepType,
107  itkGetStaticConstMacro( SpaceDimension ),
108  itkGetStaticConstMacro( SpaceDimension ) > TranslationStackTransformType;
110 
114 
127 
129  typedef typename FixedImageType::SizeType SizeType;
130 
136  virtual int BeforeAll( void );
137 
138  virtual void BeforeRegistration( void );
139 
140  virtual void InitializeTransform( void );
141 
143  virtual void ReadFromFile( void );
144 
146  virtual void WriteToFile( const ParametersType & param ) const;
147 
148 protected:
149 
152 
155 
156 private:
157 
159  TranslationStackTransform( const Self & ); // purposely not implemented
160  void operator=( const Self & ); // purposely not implemented
161 
163  TranslationStackTransformPointer m_TranslationStackTransform;
164 
166  ReducedDimensionTranslationTransformPointer m_TranslationDummySubTransform;
167 
171 
172  unsigned int InitializeTranslationTransform();
173 
174 };
175 
176 
177 } // end namespace elastix
178 
179 #ifndef ITK_MANUAL_INSTANTIATION
180 #include "elxTranslationStackTransform.hxx"
181 #endif
182 
183 #endif // end #ifndef __elxTranslationStackTransform_h
This class combines two transforms: an &#39;initial transform&#39; with a &#39;current transform&#39;.
Superclass::RegistrationPointer RegistrationPointer
virtual void InitializeTransform(void)
TranslationStackTransformType::Pointer TranslationStackTransformPointer
TranslationStackTransformPointer m_TranslationStackTransform
virtual void WriteToFile(void) const
Superclass2::RegistrationType RegistrationType
ReducedDimensionTranslationTransformPointer m_TranslationDummySubTransform
itk::SmartPointer< const Self > ConstPointer
Superclass1::NumberOfParametersType NumberOfParametersType
Implements stack of transforms: one for every last dimension index.
elxClassNameMacro("TranslationStackTransform")
ElastixType::FixedImageType FixedImageType
Superclass::ElastixType ElastixType
unsigned int InitializeTranslationTransform()
Superclass2::ConfigurationType ConfigurationType
Transform maps points, vectors and covariant vectors from an input space to an output space...
itkStaticConstMacro(SpaceDimension, unsigned int, Superclass2::FixedImageDimension)
Superclass2::CombinationTransformType CombinationTransformType
elx::TransformBase< TElastix > Superclass2
ElastixType::MovingImageType MovingImageType
Superclass::ElastixPointer ElastixPointer
ElastixType::CoordRepType CoordRepType
Superclass::RegistrationType RegistrationType
Superclass::NumberOfParametersType NumberOfParametersType
Superclass2::RegistrationPointer RegistrationPointer
This class is the elastix base class for all Transforms.
Superclass::ConfigurationType ConfigurationType
Superclass2::ConfigurationPointer ConfigurationPointer
TranslationTransformType::Pointer TranslationTransformPointer
Translation transformation of a vector space (e.g. space coordinates)
Superclass::ConfigurationPointer ConfigurationPointer
ReducedDimensionTranslationTransformType::Pointer ReducedDimensionTranslationTransformPointer
itk::AdvancedTranslationTransform< typename elx::TransformBase< TElastix >::CoordRepType, itkGetStaticConstMacro(ReducedSpaceDimension) > ReducedDimensionTranslationTransformType
virtual void BeforeRegistration(void)
itk::AdvancedTranslationTransform< typename elx::TransformBase< TElastix >::CoordRepType, itkGetStaticConstMacro(SpaceDimension) > TranslationTransformType
itk::AdvancedCombinationTransform< typename elx::TransformBase< TElastix >::CoordRepType, elx::TransformBase< TElastix >::FixedImageDimension > Superclass1
itk::StackTransform< typename elx::TransformBase< TElastix >::CoordRepType, itkGetStaticConstMacro(SpaceDimension), itkGetStaticConstMacro(SpaceDimension) > TranslationStackTransformType


Generated on OURCE_DATE_EPOCH for elastix by doxygen 1.8.13 elastix logo