00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef __itkScaleSkewVersor3DTransform_h
00019 #define __itkScaleSkewVersor3DTransform_h
00020
00021 #include <iostream>
00022 #include "itkVersorRigid3DTransform.h"
00023
00024 namespace itk
00025 {
00026
00034 template < class TScalarType=double >
00035 class ITK_EXPORT ScaleSkewVersor3DTransform :
00036 public VersorRigid3DTransform< TScalarType >
00037 {
00038 public:
00040 typedef ScaleSkewVersor3DTransform Self;
00041 typedef VersorRigid3DTransform< TScalarType > Superclass;
00042 typedef SmartPointer<Self> Pointer;
00043 typedef SmartPointer<const Self> ConstPointer;
00044
00046 itkNewMacro( Self );
00047
00049 itkTypeMacro( ScaleSkewVersor3DTransform, VersorRigid3DTransform );
00050
00052 itkStaticConstMacro(SpaceDimension, unsigned int, 3);
00053 itkStaticConstMacro(ParametersDimension, unsigned int, 15);
00054
00056 typedef typename Superclass::ScalarType ScalarType;
00057
00059 typedef typename Superclass::ParametersType ParametersType;
00060
00062 typedef typename Superclass::MatrixType MatrixType;
00063
00065 typedef typename Superclass::JacobianType JacobianType;
00066
00068 typedef typename Superclass::VnlQuaternionType VnlQuaternionType;
00069
00071 typedef Vector<TScalarType, itkGetStaticConstMacro(SpaceDimension)>
00072 ScaleVectorType;
00073 typedef Vector<TScalarType, 6 >
00074 SkewVectorType;
00075
00077 typedef typename Superclass::VersorType VersorType;
00078 typedef typename VersorType::VectorType AxisType;
00079 typedef typename VersorType::ValueType AngleType;
00080
00082 typedef typename Superclass::OffsetType OffsetType;
00083
00085 typedef typename Superclass::InputPointType InputPointType;
00086 typedef typename Superclass::OutputPointType OutputPointType;
00087
00089 typedef typename Superclass::InputVectorType InputVectorType;
00090 typedef typename Superclass::OutputVectorType OutputVectorType;
00091
00093 typedef typename Superclass::InputCovariantVectorType
00094 InputCovariantVectorType;
00095 typedef typename Superclass::OutputCovariantVectorType
00096 OutputCovariantVectorType;
00097
00099 typedef typename Superclass::InputVnlVectorType InputVnlVectorType;
00100 typedef typename Superclass::OutputVnlVectorType OutputVnlVectorType;
00101
00110 void SetParameters( const ParametersType & parameters );
00111 virtual const ParametersType& GetParameters(void) const;
00112
00113 virtual const MatrixType & GetMatrix(void) const;
00114
00115 void SetScale( const ScaleVectorType & scale );
00116 itkGetConstReferenceMacro( Scale, ScaleVectorType );
00117
00118 void SetSkew( const SkewVectorType & skew );
00119 itkGetConstReferenceMacro( Skew, SkewVectorType );
00120
00121 void SetIdentity();
00122
00123 protected:
00124 ScaleSkewVersor3DTransform();
00125 ~ScaleSkewVersor3DTransform(){};
00126 void PrintSelf(std::ostream &os, Indent indent) const;
00127
00128 ScaleSkewVersor3DTransform(unsigned int outputSpaceDimension,
00129 unsigned int parametersDimension);
00130
00132 void ComputeMatrixAndOffset(void);
00133
00134 private:
00135 ScaleSkewVersor3DTransform(const Self&);
00136 void operator=(const Self&);
00137
00139 ScaleVectorType m_Scale;
00140
00142 SkewVectorType m_Skew;
00143
00144 };
00145
00146
00147 }
00148
00149
00150 #ifndef ITK_MANUAL_INSTANTIATION
00151 #include "itkScaleSkewVersor3DTransform.txx"
00152 #endif
00153
00154 #endif