Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __itkEuler3DTransform_h
00018 #define __itkEuler3DTransform_h
00019
00020 #include <iostream>
00021 #include "itkRigid3DTransform.h"
00022
00023 namespace itk
00024 {
00025
00046 template < class TScalarType=double >
00047 class ITK_EXPORT Euler3DTransform :
00048 public Rigid3DTransform< TScalarType >
00049 {
00050 public:
00052 typedef Euler3DTransform Self;
00053 typedef Rigid3DTransform< TScalarType > Superclass;
00054 typedef SmartPointer<Self> Pointer;
00055 typedef SmartPointer<const Self> ConstPointer;
00056
00058 itkNewMacro( Self );
00059
00061 itkTypeMacro( Euler3DTransform, Rigid3DTransform );
00062
00064 itkStaticConstMacro(SpaceDimension, unsigned int, 3);
00065 itkStaticConstMacro(InputSpaceDimension, unsigned int, 3);
00066 itkStaticConstMacro(OutputSpaceDimension, unsigned int, 3);
00067 itkStaticConstMacro(ParametersDimension, unsigned int, 6);
00069
00070 typedef typename Superclass::ParametersType ParametersType;
00071 typedef typename Superclass::ParametersValueType ParametersValueType;
00072 typedef typename Superclass::JacobianType JacobianType;
00073 typedef typename Superclass::ScalarType ScalarType;
00074 typedef typename Superclass::InputVectorType InputVectorType;
00075 typedef typename Superclass::OutputVectorType OutputVectorType;
00076 typedef typename Superclass::InputCovariantVectorType InputCovariantVectorType;
00077 typedef typename Superclass::OutputCovariantVectorType OutputCovariantVectorType;
00078 typedef typename Superclass::InputVnlVectorType InputVnlVectorType;
00079 typedef typename Superclass::OutputVnlVectorType OutputVnlVectorType;
00080 typedef typename Superclass::InputPointType InputPointType;
00081 typedef typename Superclass::OutputPointType OutputPointType;
00082 typedef typename Superclass::MatrixType MatrixType;
00083 typedef typename Superclass::InverseMatrixType InverseMatrixType;
00084 typedef typename Superclass::CenterType CenterType;
00085 typedef typename Superclass::TranslationType TranslationType;
00086 typedef typename Superclass::OffsetType OffsetType;
00087 typedef typename Superclass::ScalarType AngleType;
00088
00093 void SetParameters( const ParametersType & parameters );
00094 const ParametersType& GetParameters(void) const;
00096
00098 void SetRotation(ScalarType angleX,ScalarType angleY,ScalarType angleZ);
00099 itkGetConstMacro(AngleX, ScalarType);
00100 itkGetConstMacro(AngleY, ScalarType);
00101 itkGetConstMacro(AngleZ, ScalarType);
00103
00108 const JacobianType & GetJacobian(const InputPointType &point ) const;
00109
00111 itkSetMacro(ComputeZYX,bool);
00112 itkGetConstMacro(ComputeZYX,bool);
00114
00115 virtual void SetIdentity(void);
00116
00117
00118 protected:
00119 Euler3DTransform();
00120 Euler3DTransform(const MatrixType & matrix,
00121 const OutputPointType & offset);
00122 Euler3DTransform(unsigned int outputSpaceDims,
00123 unsigned int paramsSpaceDims);
00124
00125 ~Euler3DTransform(){};
00126
00127 void PrintSelf(std::ostream &os, Indent indent) const;
00128
00130 void SetVarRotation(ScalarType angleX, ScalarType angleY, ScalarType angleZ);
00131
00133 void ComputeMatrix(void);
00134 void ComputeMatrixParameters(void);
00136
00137 private:
00138 Euler3DTransform(const Self&);
00139 void operator=(const Self&);
00140
00141 ScalarType m_AngleX;
00142 ScalarType m_AngleY;
00143 ScalarType m_AngleZ;
00144 bool m_ComputeZYX;
00145
00146 };
00147
00148
00149 }
00150
00151
00152 #define ITK_TEMPLATE_Euler3DTransform(_, EXPORT, x, y) namespace itk { \
00153 _(1(class EXPORT Euler3DTransform< ITK_TEMPLATE_1 x >)) \
00154 namespace Templates { typedef Euler3DTransform< ITK_TEMPLATE_1 x > \
00155 Euler3DTransform##y; } \
00156 }
00157
00158 #if ITK_TEMPLATE_EXPLICIT
00159 # include "Templates/itkEuler3DTransform+-.h"
00160 #endif
00161
00162 #if ITK_TEMPLATE_TXX
00163 # include "itkEuler3DTransform.txx"
00164 #endif
00165
00166 #endif
00167