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
00039 template < class TScalarType=double >
00040 class ITK_EXPORT Euler2DTransform :
00041 public Rigid2DTransform< TScalarType >
00042 {
00043 public:
00045 typedef Euler2DTransform Self;
00046 typedef Rigid2DTransform< TScalarType > Superclass;
00047 typedef SmartPointer<Self> Pointer;
00048 typedef SmartPointer<const Self> ConstPointer;
00049
00051 itkNewMacro( Self );
00052
00054 itkTypeMacro( Euler2DTransform, Rigid2DTransform );
00055
00057 itkStaticConstMacro(SpaceDimension, unsigned int, 2);
00058 itkStaticConstMacro(ParametersDimension, unsigned int, 3);
00060
00062 typedef typename Superclass::ScalarType ScalarType;
00063
00065 typedef typename Superclass::ParametersType ParametersType;
00066
00068 typedef typename Superclass::JacobianType JacobianType;
00069
00071 typedef typename Superclass::InputPointType InputPointType;
00072 typedef typename Superclass::OutputPointType OutputPointType;
00073
00075 typedef typename Superclass::InputVectorType InputVectorType;
00076 typedef typename Superclass::OutputVectorType OutputVectorType;
00077
00079 typedef typename Superclass::InputCovariantVectorType InputCovariantVectorType;
00080 typedef typename Superclass::OutputCovariantVectorType OutputCovariantVectorType;
00081
00083 typedef typename Superclass::InputVnlVectorType InputVnlVectorType;
00084 typedef typename Superclass::OutputVnlVectorType OutputVnlVectorType;
00085 typedef typename Superclass::MatrixType MatrixType;
00086
00091 void CloneInverseTo( Pointer & newinverse ) const;
00092
00097 void CloneTo( Pointer & clone ) const;
00098
00103 void ComputeAngleFromMatrix()
00104 { this->ComputeMatrixParameters(); }
00105
00106 protected:
00107 Euler2DTransform();
00108 ~Euler2DTransform(){};
00109
00110 Euler2DTransform(unsigned int outputSpaceDimension, unsigned int parametersDimension);
00111
00112 void PrintSelf(std::ostream &os, Indent indent) const;
00113
00114 private:
00115 Euler2DTransform(const Self&);
00116 void operator=(const Self&);
00117
00118
00119 };
00120
00121
00122 }
00123
00124
00125 #define ITK_TEMPLATE_Euler2DTransform(_, EXPORT, x, y) namespace itk { \
00126 _(1(class EXPORT Euler2DTransform< ITK_TEMPLATE_1 x >)) \
00127 namespace Templates { typedef Euler2DTransform< ITK_TEMPLATE_1 x > \
00128 Euler2DTransform##y; } \
00129 }
00130
00131 #if ITK_TEMPLATE_EXPLICIT
00132 # include "Templates/itkEuler2DTransform+-.h"
00133 #endif
00134
00135 #if ITK_TEMPLATE_TXX
00136 # include "itkEuler2DTransform.txx"
00137 #endif
00138
00139 #endif
00140