go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
elxAdvancedAffineTransform.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 __elxAdvancedAffineTransform_H_
19 #define __elxAdvancedAffineTransform_H_
20 
21 #include "elxIncludes.h" // include first to avoid MSVS warning
25 
26 namespace elastix
27 {
28 
76 template< class TElastix >
79  typename elx::TransformBase< TElastix >::CoordRepType,
80  elx::TransformBase< TElastix >::FixedImageDimension >,
81  public elx::TransformBase< TElastix >
82 {
83 public:
84 
91  typedef itk::SmartPointer< Self > Pointer;
92  typedef itk::SmartPointer< const Self > ConstPointer;
93 
97  typename elx::TransformBase< TElastix >::CoordRepType,
100 
102  itkNewMacro( Self );
103 
106 
111  elxClassNameMacro( "AffineTransform" );
112 
114  itkStaticConstMacro( SpaceDimension, unsigned int, Superclass2::FixedImageDimension );
115 
129 
143 
145  typedef typename FixedImageType::IndexType IndexType;
146  typedef typename IndexType::IndexValueType IndexValueType;
147  typedef typename FixedImageType::SizeType SizeType;
148  typedef typename FixedImageType::PointType PointType;
149  typedef typename FixedImageType::SpacingType SpacingType;
150  typedef typename FixedImageType::RegionType RegionType;
151  typedef typename FixedImageType::DirectionType DirectionType;
152 
153  //typedef CenteredTransformInitializer<
158 
161 
166  virtual void BeforeRegistration( void );
167 
183  virtual void InitializeTransform( void );
184 
192  virtual void SetScales( void );
193 
198  virtual void ReadFromFile( void );
199 
203  virtual void WriteToFile( const ParametersType & param ) const;
204 
208  virtual void CreateTransformParametersMap(
209  const ParametersType & param, ParameterMapType * paramsMap ) const;
210 
211 protected:
212 
217 
223  virtual bool ReadCenterOfRotationIndex( InputPointType & rotationPoint ) const;
224 
230  virtual bool ReadCenterOfRotationPoint( InputPointType & rotationPoint ) const;
231 
232 private:
233 
235  AdvancedAffineTransformElastix( const Self & ); // purposely not implemented
237  void operator=( const Self & ); // purposely not implemented
238 
239  AffineTransformPointer m_AffineTransform;
240 
241 };
242 
243 } // end namespace elastix
244 
245 #ifndef ITK_MANUAL_INSTANTIATION
246 #include "elxAdvancedAffineTransform.hxx"
247 #endif
248 
249 #endif // end #ifndef __elxAdvancedAffineTransform_H_
This class combines two transforms: an 'initial transform' with a 'current transform'.
Superclass1::NumberOfParametersType NumberOfParametersType
Superclass1::OutputCovariantVectorType OutputCovariantVectorType
Superclass::InputCovariantVectorType InputCovariantVectorType
Superclass2::ConfigurationPointer ConfigurationPointer
Superclass1::InputVnlVectorType InputVnlVectorType
Superclass::RegistrationPointer RegistrationPointer
Superclass::OutputCovariantVectorType OutputCovariantVectorType
Superclass1::OutputVnlVectorType OutputVnlVectorType
ElastixType::ParameterMapType ParameterMapType
itk::AdvancedMatrixOffsetTransformBase< typename elx::TransformBase< TElastix >::CoordRepType, elx::TransformBase< TElastix >::FixedImageDimension, elx::TransformBase< TElastix >::MovingImageDimension > AffineTransformType
CenteredTransformInitializer2 is a helper class intended to initialize the center of rotation and the...
Superclass1::InputCovariantVectorType InputCovariantVectorType
Superclass2::ConfigurationType ConfigurationType
Superclass2::CombinationTransformType CombinationTransformType
OptimizerType::ScalesType ScalesType
virtual void CreateTransformParametersMap(const ParametersType &param, ParameterMapType *paramsMap) const
A transform based on the itk::AdvancedMatrixOffsetTransformBase.
Superclass2::RegistrationPointer RegistrationPointer
virtual bool ReadCenterOfRotationPoint(InputPointType &rotationPoint) const
ElastixType::FixedImageType FixedImageType
virtual void WriteToFile(void) const
Superclass::ElastixType ElastixType
Transform maps points, vectors and covariant vectors from an input space to an output space...
itk::AdvancedCombinationTransform< typename elx::TransformBase< TElastix >::CoordRepType, elx::TransformBase< TElastix >::FixedImageDimension > Superclass1
itk::CenteredTransformInitializer2< AffineTransformType, FixedImageType, MovingImageType > TransformInitializerType
itk::SmartPointer< const Self > ConstPointer
ElastixType::MovingImageType MovingImageType
Superclass::ElastixPointer ElastixPointer
ElastixType::CoordRepType CoordRepType
Superclass::RegistrationType RegistrationType
TransformInitializerType::Pointer TransformInitializerPointer
Superclass::NumberOfParametersType NumberOfParametersType
This class is the elastix base class for all Transforms.
Superclass::ConfigurationType ConfigurationType
Superclass::OutputVnlVectorType OutputVnlVectorType
Superclass::ConfigurationPointer ConfigurationPointer
Superclass::InputVnlVectorType InputVnlVectorType
virtual bool ReadCenterOfRotationIndex(InputPointType &rotationPoint) const
itkStaticConstMacro(SpaceDimension, unsigned int, Superclass2::FixedImageDimension)


Generated on 04-09-2015 for elastix by doxygen 1.8.9.1 elastix logo