go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
elxSimilarityTransform.h
Go to the documentation of this file.
1 /*======================================================================
2 
3  This file is part of the elastix software.
4 
5  Copyright (c) University Medical Center Utrecht. All rights reserved.
6  See src/CopyrightElastix.txt or http://elastix.isi.uu.nl/legal.php for
7  details.
8 
9  This software is distributed WITHOUT ANY WARRANTY; without even
10  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11  PURPOSE. See the above copyright notices for more information.
12 
13 ======================================================================*/
14 #ifndef __elxSimilarityTransform_H__
15 #define __elxSimilarityTransform_H__
16 
17 #include "elxIncludes.h" // include first to avoid MSVS warning
18 #include "itkSimilarityTransform.h"
19 #include "itkCenteredTransformInitializer.h"
20 
21 namespace elastix
22 {
23 
74 template< class TElastix >
77  typename elx::TransformBase< TElastix >::CoordRepType,
78  elx::TransformBase< TElastix >::FixedImageDimension >,
79  public elx::TransformBase< TElastix >
80 {
81 public:
82 
89  typedef itk::SmartPointer< Self > Pointer;
90  typedef itk::SmartPointer< const Self > ConstPointer;
91 
94  typedef itk::SimilarityTransform<
97 
99  itkNewMacro( Self );
100 
103 
108  elxClassNameMacro( "SimilarityTransform" );
109 
111  itkStaticConstMacro( SpaceDimension, unsigned int, Superclass2::FixedImageDimension );
112 
120 
129 
131  typedef typename SimilarityTransformType::Pointer SimilarityTransformPointer;
132  typedef typename SimilarityTransformType::OffsetType OffsetType;
133 
146 
148  typedef typename FixedImageType::IndexType IndexType;
149  typedef typename IndexType::IndexValueType IndexValueType;
150  typedef typename FixedImageType::SizeType SizeType;
151  typedef typename FixedImageType::PointType PointType;
152  typedef typename FixedImageType::SpacingType SpacingType;
153  typedef typename FixedImageType::RegionType RegionType;
154  typedef typename FixedImageType::DirectionType DirectionType;
155 
156  typedef itk::CenteredTransformInitializer<
158  typedef typename TransformInitializerType::Pointer TransformInitializerPointer;
159 
162 
167  virtual void BeforeRegistration( void );
168 
184  virtual void InitializeTransform( void );
185 
193  virtual void SetScales( void );
194 
199  virtual void ReadFromFile( void );
200 
204  virtual void WriteToFile( const ParametersType & param ) const;
205 
206 protected:
207 
212 
218  virtual bool ReadCenterOfRotationIndex( InputPointType & rotationPoint ) const;
219 
225  virtual bool ReadCenterOfRotationPoint( InputPointType & rotationPoint ) const;
226 
227 private:
228 
230  SimilarityTransformElastix( const Self & ); // purposely not implemented
232  void operator=( const Self & ); // purposely not implemented
233 
235 
236 };
237 
238 } // end namespace elastix
239 
240 #ifndef ITK_MANUAL_INSTANTIATION
241 #include "elxSimilarityTransform.hxx"
242 #endif
243 
244 #endif // end #ifndef __elxSimilarityTransform_H__
This class combines two transforms: an 'initial transform' with a 'current transform'.
virtual bool ReadCenterOfRotationPoint(InputPointType &rotationPoint) const
Superclass::InputCovariantVectorType InputCovariantVectorType
Superclass::RegistrationPointer RegistrationPointer
Superclass::OutputCovariantVectorType OutputCovariantVectorType
Superclass2::ConfigurationType ConfigurationType
Superclass1::ParametersType ParametersType
Superclass1::NumberOfParametersType NumberOfParametersType
virtual bool ReadCenterOfRotationIndex(InputPointType &rotationPoint) const
Superclass1::OutputVectorType OutputVectorType
Superclass2::CombinationTransformType CombinationTransformType
virtual void InitializeTransform(void)
Superclass1::InputPointType InputPointType
virtual void BeforeRegistration(void)
OptimizerType::ScalesType ScalesType
Superclass1::OutputCovariantVectorType OutputCovariantVectorType
ElastixType::FixedImageType FixedImageType
FixedImageType::SpacingType SpacingType
FixedImageType::DirectionType DirectionType
virtual void WriteToFile(void) const
Superclass::ElastixType ElastixType
Transform maps points, vectors and covariant vectors from an input space to an output space...
Superclass1::OutputPointType OutputPointType
Superclass1::InputVnlVectorType InputVnlVectorType
SimilarityTransformType::OffsetType OffsetType
Superclass2::RegistrationPointer RegistrationPointer
Superclass2::RegistrationType RegistrationType
TransformInitializerType::Pointer TransformInitializerPointer
itkStaticConstMacro(SpaceDimension, unsigned int, Superclass2::FixedImageDimension)
ElastixType::MovingImageType MovingImageType
Superclass1::InputVectorType InputVectorType
Superclass::ElastixPointer ElastixPointer
ElastixType::CoordRepType CoordRepType
Superclass::RegistrationType RegistrationType
A transform based on the itk SimilarityTransforms.
Superclass2::MovingImageType MovingImageType
SimilarityTransformPointer m_SimilarityTransform
Superclass2::ConfigurationPointer ConfigurationPointer
Superclass::NumberOfParametersType NumberOfParametersType
Superclass2::FixedImageType FixedImageType
SimilarityTransformType::Pointer SimilarityTransformPointer
itk::CenteredTransformInitializer< SimilarityTransformType, FixedImageType, MovingImageType > TransformInitializerType
This class is the elastix base class for all Transforms.
Superclass2::ElastixPointer ElastixPointer
Superclass::ConfigurationType ConfigurationType
Superclass::OutputVnlVectorType OutputVnlVectorType
itk::SmartPointer< const Self > ConstPointer
Superclass::ConfigurationPointer ConfigurationPointer
Superclass1::OutputVnlVectorType OutputVnlVectorType
Superclass1::InputCovariantVectorType InputCovariantVectorType
Superclass::InputVnlVectorType InputVnlVectorType
elxClassNameMacro("SimilarityTransform")
elx::TransformBase< TElastix > Superclass2
itk::SimilarityTransform< typename elx::TransformBase< TElastix >::CoordRepType, elx::TransformBase< TElastix >::FixedImageDimension > SimilarityTransformType
itk::AdvancedCombinationTransform< typename elx::TransformBase< TElastix >::CoordRepType, elx::TransformBase< TElastix >::FixedImageDimension > Superclass1


Generated on 11-03-2014 for elastix by doxygen 1.8.6 elastix logo