00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __itkCenteredEuler3DTransform_h
00018 #define __itkCenteredEuler3DTransform_h
00019
00020 #include <iostream>
00021 #include "itkEuler3DTransform.h"
00022 #include "itkExceptionObject.h"
00023 #include "vnl/vnl_quaternion.h"
00024 #include "itkMatrix.h"
00025 #include "itkVersor.h"
00026
00027 namespace itk
00028 {
00029
00037 template < class TScalarType=double >
00038 class ITK_EXPORT CenteredEuler3DTransform :
00039 public Euler3DTransform< TScalarType >
00040 {
00041 public:
00043 typedef CenteredEuler3DTransform Self;
00044 typedef Euler3DTransform< TScalarType > Superclass;
00045 typedef SmartPointer<Self> Pointer;
00046 typedef SmartPointer<const Self> ConstPointer;
00047
00049 itkTypeMacro( CenteredEuler3DTransform, Euler3DTransform );
00050
00052 itkNewMacro( Self );
00053
00055 enum { SpaceDimension = 3,
00056 ParametersDimension = 6 };
00057
00059 typedef typename Superclass::ScalarType ScalarType;
00060
00062 typedef typename Superclass::ParametersType ParametersType;
00063
00065 typedef typename Superclass::JacobianType JacobianType;
00066
00068 typedef typename Superclass::VnlQuaternionType VnlQuaternionType;
00069
00071 typedef typename Superclass::VersorType VersorType;
00072 typedef typename VersorType::VectorType AxisType;
00073 typedef typename VersorType::ValueType AngleType;
00074
00076 typedef typename Superclass::OffsetType OffsetType;
00077
00079 typedef typename Superclass::InputPointType InputPointType;
00080 typedef typename Superclass::OutputPointType OutputPointType;
00081
00083 typedef typename Superclass::InputVectorType InputVectorType;
00084 typedef typename Superclass::OutputVectorType OutputVectorType;
00085
00087 typedef typename Superclass::InputCovariantVectorType InputCovariantVectorType;
00088 typedef typename Superclass::OutputCovariantVectorType OutputCovariantVectorType;
00089
00091 typedef typename Superclass::InputVnlVectorType InputVnlVectorType;
00092 typedef typename Superclass::OutputVnlVectorType OutputVnlVectorType;
00093
00098 void SetParameters( const ParametersType & parameters );
00099
00104 const ParametersType & GetParameters( void ) const;
00105
00107 void SetCenter( const InputPointType & center );
00108 itkGetConstReferenceMacro( Center, InputPointType );
00109
00111 void SetTranslation( const OutputVectorType & translation );
00112 itkGetConstReferenceMacro( Translation, OutputVectorType );
00113
00121 inline InputPointType BackTransform(const OutputPointType &point ) const;
00122 inline InputVectorType BackTransform(const OutputVectorType &vector) const;
00123 inline InputVnlVectorType BackTransform(const OutputVnlVectorType &vector) const;
00124
00125 inline InputCovariantVectorType BackTransform(
00126 const OutputCovariantVectorType &vector) const;
00127
00135 bool GetInverse(Self* inverse) const;
00136
00138 virtual void SetIdentity(void);
00139
00140 protected:
00141 CenteredEuler3DTransform();
00142 ~CenteredEuler3DTransform();
00143
00144
00148 void PrintSelf(std::ostream &os, Indent indent) const;
00149
00150
00152 virtual void ComputeMatrix(void);
00153
00154 private:
00155 CenteredEuler3DTransform(const Self&);
00156 void operator=(const Self&);
00157 };
00158
00159
00160 }
00161
00162
00163 #ifndef ITK_MANUAL_INSTANTIATION
00164 #include "itkCenteredEuler3DTransform.txx"
00165 #endif
00166
00167 #endif