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
00035 template <
00036 class TScalarType=double,
00037 unsigned int NDimensions=3>
00038 class ITK_EXPORT CenteredAffineTransform : public AffineTransform< TScalarType,
00039 NDimensions >
00040 {
00041 public:
00043 typedef CenteredAffineTransform Self;
00044 typedef AffineTransform< TScalarType, NDimensions > Superclass;
00045 typedef SmartPointer<Self> Pointer;
00046 typedef SmartPointer<const Self> ConstPointer;
00047
00049 itkTypeMacro( CenteredAffineTransform, AffineTransform );
00050
00052 itkNewMacro( Self );
00053
00055 itkStaticConstMacro(SpaceDimension, unsigned int, NDimensions);
00056 itkStaticConstMacro(ParametersDimension, unsigned int,
00057 NDimensions*(NDimensions+2));
00059
00060
00062 typedef typename Superclass::ParametersType ParametersType;
00063 typedef typename Superclass::JacobianType JacobianType;
00064 typedef typename Superclass::ScalarType ScalarType;
00065 typedef typename Superclass::InputVectorType InputVectorType;
00066 typedef typename Superclass::OutputVectorType OutputVectorType;
00067 typedef typename Superclass::InputCovariantVectorType
00068 InputCovariantVectorType;
00069 typedef typename Superclass::OutputCovariantVectorType
00070 OutputCovariantVectorType;
00071
00072 typedef typename Superclass::InputVnlVectorType InputVnlVectorType;
00073 typedef typename Superclass::OutputVnlVectorType OutputVnlVectorType;
00074 typedef typename Superclass::InputPointType InputPointType;
00075 typedef typename Superclass::OutputPointType OutputPointType;
00076 typedef typename Superclass::MatrixType MatrixType;
00077 typedef typename Superclass::OffsetType OffsetType;
00078
00079
00080
00089 void SetParameters( const ParametersType & parameters );
00090 const ParametersType& GetParameters(void) const;
00092
00099 const JacobianType & GetJacobian(const InputPointType &point ) const;
00100
00101 protected:
00103 CenteredAffineTransform();
00104
00106 virtual ~CenteredAffineTransform();
00107
00108 private:
00109 CenteredAffineTransform(const Self & other);
00110 const Self & operator=( const Self & );
00111
00112 };
00113
00114 }
00115
00116
00117 #define ITK_TEMPLATE_CenteredAffineTransform(_, EXPORT, x, y) namespace itk { \
00118 _(2(class EXPORT CenteredAffineTransform< ITK_TEMPLATE_2 x >)) \
00119 namespace Templates { typedef CenteredAffineTransform< ITK_TEMPLATE_2 x > \
00120 CenteredAffineTransform##y; } \
00121 }
00122
00123 #if ITK_TEMPLATE_EXPLICIT
00124 # include "Templates/itkCenteredAffineTransform+-.h"
00125 #endif
00126
00127 #if ITK_TEMPLATE_TXX
00128 # include "itkCenteredAffineTransform.txx"
00129 #endif
00130
00131
00132 #endif
00133