00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef __itkEuler2DTransform_h
00019 #define __itkEuler2DTransform_h
00020
00021 #include <iostream>
00022 #include "itkRigid2DTransform.h"
00023
00024 namespace itk
00025 {
00026
00041 template < class TScalarType=double >
00042 class ITK_EXPORT Euler2DTransform :
00043 public Rigid2DTransform< TScalarType >
00044 {
00045 public:
00047 typedef Euler2DTransform Self;
00048 typedef Rigid2DTransform< TScalarType > Superclass;
00049 typedef SmartPointer<Self> Pointer;
00050 typedef SmartPointer<const Self> ConstPointer;
00051
00053 itkNewMacro( Self );
00054
00056 itkTypeMacro( Euler2DTransform, Rigid2DTransform );
00057
00059 itkStaticConstMacro(SpaceDimension, unsigned int, 2);
00060 itkStaticConstMacro(ParametersDimension, unsigned int, 3);
00062
00064 typedef typename Superclass::ScalarType ScalarType;
00065
00067 typedef typename Superclass::ParametersType ParametersType;
00068
00070 typedef typename Superclass::JacobianType JacobianType;
00071
00073 typedef typename Superclass::InputPointType InputPointType;
00074 typedef typename Superclass::OutputPointType OutputPointType;
00075
00077 typedef typename Superclass::InputVectorType InputVectorType;
00078 typedef typename Superclass::OutputVectorType OutputVectorType;
00079
00081 typedef typename Superclass::InputCovariantVectorType InputCovariantVectorType;
00082 typedef typename Superclass::OutputCovariantVectorType OutputCovariantVectorType;
00083
00085 typedef typename Superclass::InputVnlVectorType InputVnlVectorType;
00086 typedef typename Superclass::OutputVnlVectorType OutputVnlVectorType;
00087 typedef typename Superclass::MatrixType MatrixType;
00088
00093 void CloneInverseTo( Pointer & newinverse ) const;
00094
00099 void CloneTo( Pointer & clone ) const;
00100
00105 void ComputeAngleFromMatrix()
00106 { this->ComputeMatrixParameters(); }
00107
00108 protected:
00109 Euler2DTransform();
00110 ~Euler2DTransform(){};
00111
00112 Euler2DTransform(unsigned int outputSpaceDimension, unsigned int parametersDimension);
00113
00114 void PrintSelf(std::ostream &os, Indent indent) const;
00115
00116 private:
00117 Euler2DTransform(const Self&);
00118 void operator=(const Self&);
00119
00120
00121 };
00122
00123
00124 }
00125
00126
00127 #define ITK_TEMPLATE_Euler2DTransform(_, EXPORT, x, y) namespace itk { \
00128 _(1(class EXPORT Euler2DTransform< ITK_TEMPLATE_1 x >)) \
00129 namespace Templates { typedef Euler2DTransform< ITK_TEMPLATE_1 x > \
00130 Euler2DTransform##y; } \
00131 }
00132
00133 #if ITK_TEMPLATE_EXPLICIT
00134 # include "Templates/itkEuler2DTransform+-.h"
00135 #endif
00136
00137 #if ITK_TEMPLATE_TXX
00138 # include "itkEuler2DTransform.txx"
00139 #endif
00140
00141 #endif
00142