itkSimilarity3DTransform.h
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 __itkSimilarity3DTransform_h
00019 #define __itkSimilarity3DTransform_h
00020
00021 #include <iostream>
00022 #include "itkVersorRigid3DTransform.h"
00023
00024 namespace itk
00025 {
00026
00046 template < class TScalarType=double >
00047 class ITK_EXPORT Similarity3DTransform :
00048 public VersorRigid3DTransform< TScalarType >
00049 {
00050 public:
00052 typedef Similarity3DTransform Self;
00053 typedef VersorRigid3DTransform< TScalarType > Superclass;
00054 typedef SmartPointer<Self> Pointer;
00055 typedef SmartPointer<const Self> ConstPointer;
00056
00058 itkNewMacro( Self );
00059
00061 itkTypeMacro( Similarity3DTransform, VersorRigid3DTransform );
00062
00064 itkStaticConstMacro(SpaceDimension, unsigned int, 3);
00065 itkStaticConstMacro(InputSpaceDimension, unsigned int, 3);
00066 itkStaticConstMacro(OutputSpaceDimension, unsigned int, 3);
00067 itkStaticConstMacro(ParametersDimension, unsigned int, 7);
00069
00071 typedef typename Superclass::ParametersType ParametersType;
00072 typedef typename Superclass::JacobianType JacobianType;
00073 typedef typename Superclass::ScalarType ScalarType;
00074 typedef typename Superclass::InputPointType InputPointType;
00075 typedef typename Superclass::OutputPointType OutputPointType;
00076 typedef typename Superclass::InputVectorType InputVectorType;
00077 typedef typename Superclass::OutputVectorType OutputVectorType;
00078 typedef typename Superclass::InputVnlVectorType InputVnlVectorType;
00079 typedef typename Superclass::OutputVnlVectorType OutputVnlVectorType;
00080 typedef typename Superclass::InputCovariantVectorType
00081 InputCovariantVectorType;
00082 typedef typename Superclass::OutputCovariantVectorType
00083 OutputCovariantVectorType;
00084 typedef typename Superclass::MatrixType MatrixType;
00085 typedef typename Superclass::InverseMatrixType InverseMatrixType;
00086 typedef typename Superclass::CenterType CenterType;
00087 typedef typename Superclass::OffsetType OffsetType;
00088 typedef typename Superclass::TranslationType TranslationType;
00089
00091 typedef typename Superclass::VersorType VersorType;
00092 typedef typename Superclass::AxisType AxisType;
00093 typedef typename Superclass::AngleType AngleType;
00094 typedef TScalarType ScaleType;
00095
00101 virtual void SetMatrix(const MatrixType &matrix);
00102
00107 void SetParameters( const ParametersType & parameters );
00108 virtual const ParametersType& GetParameters(void) const;
00110
00112 void SetScale( ScaleType scale );
00113 itkGetConstReferenceMacro( Scale, ScaleType );
00115
00120 const JacobianType & GetJacobian(const InputPointType &point ) const;
00121
00122 protected:
00123 Similarity3DTransform(unsigned int outputSpaceDim,
00124 unsigned int paramDim);
00125 Similarity3DTransform(const MatrixType & matrix,
00126 const OutputVectorType & offset);
00127 Similarity3DTransform();
00128 ~Similarity3DTransform(){};
00129
00130 void PrintSelf(std::ostream &os, Indent indent) const;
00131
00134 void ComputeMatrix();
00135
00137 void ComputeMatrixParameters();
00138
00139 private:
00140 Similarity3DTransform(const Self&);
00141 void operator=(const Self&);
00142
00143 ScaleType m_Scale;
00144
00145 };
00146
00147
00148 }
00149
00150
00151 #define ITK_TEMPLATE_Similarity3DTransform(_, EXPORT, x, y) namespace itk { \
00152 _(1(class EXPORT Similarity3DTransform< ITK_TEMPLATE_1 x >)) \
00153 namespace Templates { typedef Similarity3DTransform< ITK_TEMPLATE_1 x > Similarity3DTransform##y; } \
00154 }
00155
00156 #if ITK_TEMPLATE_EXPLICIT
00157 # include "Templates/itkSimilarity3DTransform+-.h"
00158 #endif
00159
00160 #if ITK_TEMPLATE_TXX
00161 # include "itkSimilarity3DTransform.txx"
00162 #endif
00163
00164 #endif
00165