Go to the documentation of this file.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
00048 template < class TScalarType=double >
00049 class ITK_EXPORT ScaleSkewVersor3DTransform :
00050 public VersorRigid3DTransform< TScalarType >
00051 {
00052 public:
00054 typedef ScaleSkewVersor3DTransform Self;
00055 typedef VersorRigid3DTransform< TScalarType > Superclass;
00056 typedef SmartPointer<Self> Pointer;
00057 typedef SmartPointer<const Self> ConstPointer;
00058
00060 itkNewMacro( Self );
00061
00063 itkTypeMacro( ScaleSkewVersor3DTransform, VersorRigid3DTransform );
00064
00066 itkStaticConstMacro(InputSpaceDimension, unsigned int, 3);
00067 itkStaticConstMacro(OutputSpaceDimension, unsigned int, 3);
00068 itkStaticConstMacro(ParametersDimension, unsigned int, 15);
00070
00072 typedef typename Superclass::ParametersType ParametersType;
00073 typedef typename Superclass::JacobianType JacobianType;
00074 typedef typename Superclass::ScalarType ScalarType;
00075 typedef typename Superclass::InputPointType InputPointType;
00076 typedef typename Superclass::OutputPointType OutputPointType;
00077 typedef typename Superclass::InputVectorType InputVectorType;
00078 typedef typename Superclass::OutputVectorType OutputVectorType;
00079 typedef typename Superclass::InputVnlVectorType InputVnlVectorType;
00080 typedef typename Superclass::OutputVnlVectorType OutputVnlVectorType;
00081 typedef typename Superclass::InputCovariantVectorType
00082 InputCovariantVectorType;
00083 typedef typename Superclass::OutputCovariantVectorType
00084 OutputCovariantVectorType;
00085 typedef typename Superclass::MatrixType MatrixType;
00086 typedef typename Superclass::InverseMatrixType InverseMatrixType;
00087 typedef typename Superclass::CenterType CenterType;
00088 typedef typename Superclass::OffsetType OffsetType;
00089 typedef typename Superclass::TranslationType TranslationType;
00090
00091 typedef typename Superclass::VersorType VersorType;
00092 typedef typename Superclass::AxisType AxisType;
00093 typedef typename Superclass::AngleType AngleType;
00094
00096 typedef Vector<TScalarType, 3>
00097 ScaleVectorType;
00098 typedef Vector<TScalarType, 6 > SkewVectorType;
00099
00100 typedef typename ScaleVectorType::ValueType ScaleVectorValueType;
00101 typedef typename SkewVectorType::ValueType SkewVectorValueType;
00102 typedef typename TranslationType::ValueType TranslationValueType;
00103
00104 typedef typename Superclass::AxisValueType AxisValueType;
00105 typedef typename Superclass::ParameterValueType ParameterValueType;
00106
00107
00111 virtual void SetMatrix(const MatrixType &matrix);
00112
00121 virtual void SetParameters( const ParametersType & parameters );
00122 virtual const ParametersType& GetParameters(void) const;
00124
00125 void SetScale( const ScaleVectorType & scale );
00126 itkGetConstReferenceMacro( Scale, ScaleVectorType );
00127
00128 void SetSkew( const SkewVectorType & skew );
00129 itkGetConstReferenceMacro( Skew, SkewVectorType );
00130
00131 void SetIdentity();
00132
00137 const JacobianType & GetJacobian(const InputPointType &point ) const;
00138
00139 protected:
00140 ScaleSkewVersor3DTransform();
00141 ScaleSkewVersor3DTransform(const MatrixType &matrix,
00142 const OutputVectorType &offset);
00143 ScaleSkewVersor3DTransform(unsigned int outputDims,
00144 unsigned int paramDims);
00145 ~ScaleSkewVersor3DTransform(){}
00146
00147 void PrintSelf(std::ostream &os, Indent indent) const;
00148
00149 void SetVarScale(const ScaleVectorType & scale)
00150 { m_Scale = scale; }
00151
00152 void SetVarSkew(const SkewVectorType & skew)
00153 { m_Skew = skew; }
00154
00156 void ComputeMatrix(void);
00157 void ComputeMatrixParameters(void);
00159
00160 private:
00161 ScaleSkewVersor3DTransform(const Self&);
00162 void operator=(const Self&);
00163
00165 ScaleVectorType m_Scale;
00166
00168 SkewVectorType m_Skew;
00169
00170 };
00171
00172
00173 }
00174
00175
00176 #define ITK_TEMPLATE_ScaleSkewVersor3DTransform(_, EXPORT, x, y) namespace itk { \
00177 _(1(class EXPORT ScaleSkewVersor3DTransform< ITK_TEMPLATE_1 x >)) \
00178 namespace Templates { typedef ScaleSkewVersor3DTransform< ITK_TEMPLATE_1 x > \
00179 ScaleSkewVersor3DTransform##y; } \
00180 }
00181
00182 #if ITK_TEMPLATE_EXPLICIT
00183 # include "Templates/itkScaleSkewVersor3DTransform+-.h"
00184 #endif
00185
00186 #if ITK_TEMPLATE_TXX
00187 # include "itkScaleSkewVersor3DTransform.txx"
00188 #endif
00189
00190
00191 #endif
00192