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(InputSpaceDimension, unsigned int, 3);
00053 itkStaticConstMacro(OutputSpaceDimension, unsigned int, 3);
00054 itkStaticConstMacro(ParametersDimension, unsigned int, 15);
00056
00058 typedef typename Superclass::ParametersType ParametersType;
00059 typedef typename Superclass::JacobianType JacobianType;
00060 typedef typename Superclass::ScalarType ScalarType;
00061 typedef typename Superclass::InputPointType InputPointType;
00062 typedef typename Superclass::OutputPointType OutputPointType;
00063 typedef typename Superclass::InputVectorType InputVectorType;
00064 typedef typename Superclass::OutputVectorType OutputVectorType;
00065 typedef typename Superclass::InputVnlVectorType InputVnlVectorType;
00066 typedef typename Superclass::OutputVnlVectorType OutputVnlVectorType;
00067 typedef typename Superclass::InputCovariantVectorType
00068 InputCovariantVectorType;
00069 typedef typename Superclass::OutputCovariantVectorType
00070 OutputCovariantVectorType;
00071 typedef typename Superclass::MatrixType MatrixType;
00072 typedef typename Superclass::InverseMatrixType InverseMatrixType;
00073 typedef typename Superclass::CenterType CenterType;
00074 typedef typename Superclass::OffsetType OffsetType;
00075 typedef typename Superclass::TranslationType TranslationType;
00076
00077 typedef typename Superclass::VersorType VersorType;
00078 typedef typename Superclass::AxisType AxisType;
00079 typedef typename Superclass::AngleType AngleType;
00080
00082 typedef Vector<TScalarType, 3>
00083 ScaleVectorType;
00084 typedef Vector<TScalarType, 6 > SkewVectorType;
00085
00094 virtual void SetParameters( const ParametersType & parameters );
00095 virtual const ParametersType& GetParameters(void) const;
00097
00098 void SetScale( const ScaleVectorType & scale );
00099 itkGetConstReferenceMacro( Scale, ScaleVectorType );
00100
00101 void SetSkew( const SkewVectorType & skew );
00102 itkGetConstReferenceMacro( Skew, SkewVectorType );
00103
00104 void SetIdentity();
00105
00110 const JacobianType & GetJacobian(const InputPointType &point ) const;
00111
00112 protected:
00113 ScaleSkewVersor3DTransform();
00114 ScaleSkewVersor3DTransform(const MatrixType &matrix,
00115 const OutputVectorType &offset);
00116 ScaleSkewVersor3DTransform(unsigned int outputDims,
00117 unsigned int paramDims);
00118 ~ScaleSkewVersor3DTransform(){};
00119
00120 void PrintSelf(std::ostream &os, Indent indent) const;
00121
00122 void SetVarScale(const ScaleVectorType & scale)
00123 { m_Scale = scale; };
00124
00125 void SetVarSkew(const SkewVectorType & skew)
00126 { m_Skew = skew; };
00127
00129 void ComputeMatrix(void);
00130 void ComputeMatrixParameters(void);
00132
00133 private:
00134 ScaleSkewVersor3DTransform(const Self&);
00135 void operator=(const Self&);
00136
00138 ScaleVectorType m_Scale;
00139
00141 SkewVectorType m_Skew;
00142
00143 };
00144
00145
00146 }
00147
00148
00149 #ifndef ITK_MANUAL_INSTANTIATION
00150 #include "itkScaleSkewVersor3DTransform.txx"
00151 #endif
00152
00153 #endif
00154