00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef __itkCenteredAffineTransform_h
00019 #define __itkCenteredAffineTransform_h
00020
00021 #include "itkAffineTransform.h"
00022
00023 namespace itk
00024 {
00025
00026
00040 template <
00041 class TScalarType=double,
00042 unsigned int NDimensions=3>
00043 class ITK_EXPORT CenteredAffineTransform : public AffineTransform< TScalarType,
00044 NDimensions >
00045 {
00046 public:
00048 typedef CenteredAffineTransform Self;
00049 typedef AffineTransform< TScalarType, NDimensions > Superclass;
00050 typedef SmartPointer<Self> Pointer;
00051 typedef SmartPointer<const Self> ConstPointer;
00052
00054 itkTypeMacro( CenteredAffineTransform, AffineTransform );
00055
00057 itkNewMacro( Self );
00058
00060 itkStaticConstMacro(SpaceDimension, unsigned int, NDimensions);
00061 itkStaticConstMacro(ParametersDimension, unsigned int,
00062 NDimensions*(NDimensions+2));
00064
00065
00067 typedef typename Superclass::ParametersType ParametersType;
00068 typedef typename Superclass::JacobianType JacobianType;
00069 typedef typename Superclass::ScalarType ScalarType;
00070 typedef typename Superclass::InputVectorType InputVectorType;
00071 typedef typename Superclass::OutputVectorType OutputVectorType;
00072 typedef typename Superclass::InputCovariantVectorType
00073 InputCovariantVectorType;
00074 typedef typename Superclass::OutputCovariantVectorType
00075 OutputCovariantVectorType;
00076 typedef typename Superclass::InputVnlVectorType InputVnlVectorType;
00077 typedef typename Superclass::OutputVnlVectorType OutputVnlVectorType;
00078 typedef typename Superclass::InputPointType InputPointType;
00079 typedef typename Superclass::OutputPointType OutputPointType;
00080 typedef typename Superclass::MatrixType MatrixType;
00081 typedef typename Superclass::OffsetType OffsetType;
00082
00083
00084
00093 void SetParameters( const ParametersType & parameters );
00094 const ParametersType& GetParameters(void) const;
00096
00103 const JacobianType & GetJacobian(const InputPointType &point ) const;
00104
00105 protected:
00107 CenteredAffineTransform();
00108
00110 virtual ~CenteredAffineTransform();
00111
00112 private:
00113 CenteredAffineTransform(const Self & other);
00114 const Self & operator=( const Self & );
00115
00116 };
00117
00118 }
00119
00120
00121 #ifndef ITK_MANUAL_INSTANTIATION
00122 #include "itkCenteredAffineTransform.txx"
00123 #endif
00124
00125 #endif
00126