itkCenteredAffineTransform.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 __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
00081 typedef typename Superclass::InverseTransformBaseType InverseTransformBaseType;
00082 typedef typename InverseTransformBaseType::Pointer InverseTransformBasePointer;
00083
00084
00085
00094 void SetParameters( const ParametersType & parameters );
00095 const ParametersType& GetParameters(void) const;
00097
00104 const JacobianType & GetJacobian(const InputPointType &point ) const;
00105
00107 bool GetInverse(Self* inverse) const;
00108
00110 virtual InverseTransformBasePointer GetInverseTransform() const;
00111
00112 protected:
00114 CenteredAffineTransform();
00115
00117 virtual ~CenteredAffineTransform();
00118
00119 private:
00120 CenteredAffineTransform(const Self & other);
00121 const Self & operator=( const Self & );
00122
00123 };
00124
00125 }
00126
00128 #define ITK_TEMPLATE_CenteredAffineTransform(_, EXPORT, x, y) namespace itk { \
00129 _(2(class EXPORT CenteredAffineTransform< ITK_TEMPLATE_2 x >)) \
00130 namespace Templates { typedef CenteredAffineTransform< ITK_TEMPLATE_2 x > \
00131 CenteredAffineTransform##y; } \
00132 }
00133
00134
00135 #if ITK_TEMPLATE_EXPLICIT
00136 # include "Templates/itkCenteredAffineTransform+-.h"
00137 #endif
00138
00139 #if ITK_TEMPLATE_TXX
00140 # include "itkCenteredAffineTransform.txx"
00141 #endif
00142
00143
00144 #endif
00145