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<
118  typename elx::TransformBase< TElastix >::CoordRepType,
119  itkGetStaticConstMacro( SpaceDimension ) > EulerTransformType;
122 
124  typedef itk::EulerTransform<
125  typename elx::TransformBase< TElastix >::CoordRepType,
126  itkGetStaticConstMacro( ReducedSpaceDimension ) > ReducedDimensionEulerTransformType;
128 
131 
133  typedef itk::StackTransform<
134  typename elx::TransformBase< TElastix >::CoordRepType,
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 
212  virtual void InitialTransformCenter( ReducedDimensionInputPointType & point );
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 
243  EulerStackTransformPointer m_EulerStackTransform;
244 
246  ReducedDimensionEulerTransformPointer m_EulerDummySubTransform;
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
This class combines two transforms: an &#39;initial transform&#39; with a &#39;current transform&#39;.
Superclass::InputPointType InputPointType
ReducedDimensionEulerTransformType::OutputVectorType ReducedDimensionOutputVectorType
unsigned int InitializeEulerTransform()
FixedImageType::IndexType IndexType
itk::SmartPointer< const Self > ConstPointer
Superclass2::RegistrationPointer RegistrationPointer
Superclass2::ConfigurationType ConfigurationType
Superclass2::ConfigurationPointer ConfigurationPointer
Superclass::RegistrationPointer RegistrationPointer
ReducedDimensionImageType::SpacingType ReducedDimensionSpacingType
ReducedDimensionRegionType::IndexType ReducedDimensionIndexType
virtual void WriteToFile(void) const
itk::ContinuousIndex< CoordRepType, SpaceDimension > ContinuousIndexType
ReducedDimensionEulerTransformType::InputPointType ReducedDimensionInputPointType
virtual void BeforeRegistration(void)
virtual int BeforeAll(void)
ReducedDimensionImageType::PointType ReducedDimensionOriginType
Superclass1::NumberOfParametersType NumberOfParametersType
ReducedDimensionImageType::SizeType ReducedDimensionSizeType
OptimizerType::ScalesType ScalesType
EulerTransformType::InputPointType InputPointType
Superclass2::RegistrationType RegistrationType
EulerStackTransformType::Pointer EulerStackTransformPointer
This class combines the Euler2DTransform with the Euler3DTransform.
elxClassNameMacro("EulerStackTransform")
itk::EulerTransform< typename elx::TransformBase< TElastix >::CoordRepType, itkGetStaticConstMacro(SpaceDimension) > EulerTransformType
Superclass2::ElastixPointer ElastixPointer
Superclass2::FixedImageType FixedImageType
Implements stack of transforms: one for every last dimension index.
Superclass2::CombinationTransformType CombinationTransformType
itk::SmartPointer< Self > Pointer
ElastixType::FixedImageType FixedImageType
ReducedDimensionEulerTransformType::Pointer ReducedDimensionEulerTransformPointer
void operator=(const Self &)
Superclass::ElastixType ElastixType
itk::ImageRegion< itkGetStaticConstMacro(ReducedSpaceDimension) > ReducedDimensionRegionType
Transform maps points, vectors and covariant vectors from an input space to an output space...
FixedImageType::SpacingType SpacingType
itk::Image< PixelType, itkGetStaticConstMacro(ReducedSpaceDimension) > ReducedDimensionImageType
itk::ContinuousIndex< CoordRepType, ReducedSpaceDimension > ReducedDimensionContinuousIndexType
virtual bool ReadCenterOfRotationIndex(ReducedDimensionInputPointType &rotationPoint) const
virtual void ReadFromFile(void)
FixedImageType::SizeType SizeType
elx::TransformBase< TElastix > Superclass2
itkStaticConstMacro(SpaceDimension, unsigned int, Superclass2::FixedImageDimension)
Superclass2::ScalesType ScalesType
Superclass2::ElastixType ElastixType
A stack transform based on the itk EulerTransforms.
FixedImageType::RegionType RegionType
FixedImageType::PointType PointType
ElastixType::MovingImageType MovingImageType
Superclass::ElastixPointer ElastixPointer
virtual void InitialTransformCenter(ReducedDimensionInputPointType &point)
ElastixType::CoordRepType CoordRepType
Superclass::RegistrationType RegistrationType
Superclass2::CoordRepType CoordRepType
itk::EulerTransform< typename elx::TransformBase< TElastix >::CoordRepType, itkGetStaticConstMacro(ReducedSpaceDimension) > ReducedDimensionEulerTransformType
virtual void InitializeTransform(void)
Superclass::OutputVectorType OutputVectorType
itk::StackTransform< typename elx::TransformBase< TElastix >::CoordRepType, itkGetStaticConstMacro(SpaceDimension), itkGetStaticConstMacro(SpaceDimension) > EulerStackTransformType
FixedImageType::DirectionType DirectionType
virtual void SetScales(void)
Superclass::NumberOfParametersType NumberOfParametersType
ReducedDimensionImageType::PointType ReducedDimensionPointType
EulerStackTransformPointer m_EulerStackTransform
This class is the elastix base class for all Transforms.
Superclass::ConfigurationType ConfigurationType
ReducedDimensionEulerTransformPointer m_EulerDummySubTransform
itk::AdvancedCombinationTransform< typename elx::TransformBase< TElastix >::CoordRepType, elx::TransformBase< TElastix >::FixedImageDimension > Superclass1
Superclass::ConfigurationPointer ConfigurationPointer
Superclass1::ParametersType ParametersType
EulerTransformType::Pointer EulerTransformPointer
virtual bool ReadCenterOfRotationPoint(ReducedDimensionInputPointType &rotationPoint) const
Superclass2::MovingImageType MovingImageType
ReducedDimensionImageType::DirectionType ReducedDimensionDirectionType
Superclass2::ITKBaseType ITKBaseType


Generated on OURCE_DATE_EPOCH for elastix by doxygen 1.8.13 elastix logo