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 __itkAdvancedSimilarity3DTransform_h
00019 #define __itkAdvancedSimilarity3DTransform_h
00020
00021 #include <iostream>
00022 #include "itkAdvancedVersorRigid3DTransform.h"
00023
00024 namespace itk
00025 {
00026
00046 template < class TScalarType=double >
00047 class ITK_EXPORT AdvancedSimilarity3DTransform :
00048 public AdvancedVersorRigid3DTransform< TScalarType >
00049 {
00050 public:
00052 typedef AdvancedSimilarity3DTransform Self;
00053 typedef AdvancedVersorRigid3DTransform< TScalarType > Superclass;
00054 typedef SmartPointer<Self> Pointer;
00055 typedef SmartPointer<const Self> ConstPointer;
00056
00058 itkNewMacro( Self );
00059
00061 itkTypeMacro( AdvancedSimilarity3DTransform, AdvancedVersorRigid3DTransform );
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);
00068
00070 typedef typename Superclass::ParametersType ParametersType;
00071 typedef typename Superclass::JacobianType JacobianType;
00072 typedef typename Superclass::ScalarType ScalarType;
00073 typedef typename Superclass::InputPointType InputPointType;
00074 typedef typename Superclass::OutputPointType OutputPointType;
00075 typedef typename Superclass::InputVectorType InputVectorType;
00076 typedef typename Superclass::OutputVectorType OutputVectorType;
00077 typedef typename Superclass::InputVnlVectorType InputVnlVectorType;
00078 typedef typename Superclass::OutputVnlVectorType OutputVnlVectorType;
00079 typedef typename Superclass::InputCovariantVectorType
00080 InputCovariantVectorType;
00081 typedef typename Superclass::OutputCovariantVectorType
00082 OutputCovariantVectorType;
00083 typedef typename Superclass::MatrixType MatrixType;
00084 typedef typename Superclass::InverseMatrixType InverseMatrixType;
00085 typedef typename Superclass::CenterType CenterType;
00086 typedef typename Superclass::OffsetType OffsetType;
00087 typedef typename Superclass::TranslationType TranslationType;
00088
00090 typedef typename Superclass::VersorType VersorType;
00091 typedef typename Superclass::AxisType AxisType;
00092 typedef typename Superclass::AngleType AngleType;
00093 typedef TScalarType ScaleType;
00094
00095 typedef typename Superclass
00096 ::NonZeroJacobianIndicesType NonZeroJacobianIndicesType;
00097 typedef typename Superclass::SpatialJacobianType SpatialJacobianType;
00098 typedef typename Superclass
00099 ::JacobianOfSpatialJacobianType JacobianOfSpatialJacobianType;
00100 typedef typename Superclass::SpatialHessianType SpatialHessianType;
00101 typedef typename Superclass
00102 ::JacobianOfSpatialHessianType JacobianOfSpatialHessianType;
00103 typedef typename Superclass::InternalMatrixType InternalMatrixType;
00104
00110 virtual void SetMatrix(const MatrixType &matrix);
00111
00116 void SetParameters( const ParametersType & parameters );
00117 virtual const ParametersType& GetParameters(void) const;
00118
00120 void SetScale( ScaleType scale );
00121 itkGetConstReferenceMacro( Scale, ScaleType );
00122
00124 virtual void GetJacobian(
00125 const InputPointType &,
00126 JacobianType &,
00127 NonZeroJacobianIndicesType & ) const;
00128
00129 protected:
00130 AdvancedSimilarity3DTransform(unsigned int outputSpaceDim,
00131 unsigned int paramDim);
00132 AdvancedSimilarity3DTransform(const MatrixType & matrix,
00133 const OutputVectorType & offset);
00134 AdvancedSimilarity3DTransform();
00135 ~AdvancedSimilarity3DTransform(){};
00136
00137 void PrintSelf(std::ostream &os, Indent indent) const;
00138
00141 void ComputeMatrix();
00142
00144 void ComputeMatrixParameters();
00145
00147 virtual void PrecomputeJacobianOfSpatialJacobian(void);
00148
00149 private:
00150 AdvancedSimilarity3DTransform(const Self&);
00151 void operator=(const Self&);
00152
00153 ScaleType m_Scale;
00154
00155 };
00156
00157
00158 }
00159
00160
00161 #define ITK_TEMPLATE_AdvancedSimilarity3DTransform(_, EXPORT, x, y) namespace itk { \
00162 _(1(class EXPORT AdvancedSimilarity3DTransform< ITK_TEMPLATE_1 x >)) \
00163 namespace Templates { typedef AdvancedSimilarity3DTransform< ITK_TEMPLATE_1 x > AdvancedSimilarity3DTransform##y; } \
00164 }
00165
00166 #if ITK_TEMPLATE_EXPLICIT
00167 # include "Templates/itkAdvancedSimilarity3DTransform+-.h"
00168 #endif
00169
00170 #if ITK_TEMPLATE_TXX
00171 # include "itkAdvancedSimilarity3DTransform.txx"
00172 #endif
00173
00174 #endif