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
00035 template < class TScalarType=double >
00036 class ITK_EXPORT Similarity3DTransform :
00037 public VersorRigid3DTransform< TScalarType >
00038 {
00039 public:
00041 typedef Similarity3DTransform Self;
00042 typedef VersorRigid3DTransform< TScalarType > Superclass;
00043 typedef SmartPointer<Self> Pointer;
00044 typedef SmartPointer<const Self> ConstPointer;
00045
00047 itkNewMacro( Self );
00048
00050 itkTypeMacro( Similarity3DTransform, VersorRigid3DTransform );
00051
00053 itkStaticConstMacro(SpaceDimension, unsigned int, 3);
00054 itkStaticConstMacro(InputSpaceDimension, unsigned int, 3);
00055 itkStaticConstMacro(OutputSpaceDimension, unsigned int, 3);
00056 itkStaticConstMacro(ParametersDimension, unsigned int, 7);
00057
00059 typedef typename Superclass::ParametersType ParametersType;
00060 typedef typename Superclass::JacobianType JacobianType;
00061 typedef typename Superclass::ScalarType ScalarType;
00062 typedef typename Superclass::InputPointType InputPointType;
00063 typedef typename Superclass::OutputPointType OutputPointType;
00064 typedef typename Superclass::InputVectorType InputVectorType;
00065 typedef typename Superclass::OutputVectorType OutputVectorType;
00066 typedef typename Superclass::InputVnlVectorType InputVnlVectorType;
00067 typedef typename Superclass::OutputVnlVectorType OutputVnlVectorType;
00068 typedef typename Superclass::InputCovariantVectorType
00069 InputCovariantVectorType;
00070 typedef typename Superclass::OutputCovariantVectorType
00071 OutputCovariantVectorType;
00072 typedef typename Superclass::MatrixType MatrixType;
00073 typedef typename Superclass::InverseMatrixType InverseMatrixType;
00074 typedef typename Superclass::CenterType CenterType;
00075 typedef typename Superclass::OffsetType OffsetType;
00076 typedef typename Superclass::TranslationType TranslationType;
00077
00079 typedef typename Superclass::VersorType VersorType;
00080 typedef typename Superclass::AxisType AxisType;
00081 typedef typename Superclass::AngleType AngleType;
00082 typedef TScalarType ScaleType;
00083
00088 void SetParameters( const ParametersType & parameters );
00089 virtual const ParametersType& GetParameters(void) const;
00090
00092 void SetScale( ScaleType scale );
00093 itkGetConstReferenceMacro( Scale, ScaleType );
00094
00099 const JacobianType & GetJacobian(const InputPointType &point ) const;
00100
00101 protected:
00102 Similarity3DTransform(unsigned int outputSpaceDim,
00103 unsigned int paramDim);
00104 Similarity3DTransform(const MatrixType & matrix,
00105 const OutputVectorType & offset);
00106 Similarity3DTransform();
00107 ~Similarity3DTransform(){};
00108
00109 void PrintSelf(std::ostream &os, Indent indent) const;
00110
00113 void ComputeMatrix();
00114
00115 private:
00116 Similarity3DTransform(const Self&);
00117 void operator=(const Self&);
00118
00119 ScaleType m_Scale;
00120
00121 };
00122
00123
00124 }
00125
00126
00127 #ifndef ITK_MANUAL_INSTANTIATION
00128 #include "itkSimilarity3DTransform.txx"
00129 #endif
00130
00131 #endif