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::ParametersValueType ParametersValueType;
00064 typedef typename Superclass::JacobianType JacobianType;
00065 typedef typename Superclass::ScalarType ScalarType;
00066 typedef typename Superclass::InputVectorType InputVectorType;
00067 typedef typename Superclass::OutputVectorType OutputVectorType;
00068 typedef typename Superclass::InputCovariantVectorType
00069 InputCovariantVectorType;
00070 typedef typename Superclass::OutputCovariantVectorType
00071 OutputCovariantVectorType;
00072
00073 typedef typename Superclass::InputVnlVectorType InputVnlVectorType;
00074 typedef typename Superclass::OutputVnlVectorType OutputVnlVectorType;
00075 typedef typename Superclass::InputPointType InputPointType;
00076 typedef typename Superclass::InputPointValueType InputPointValueType;
00077 typedef typename Superclass::OutputVectorValueType OutputVectorValueType;
00078 typedef typename Superclass::OutputPointType OutputPointType;
00079 typedef typename Superclass::MatrixType MatrixType;
00080 typedef typename Superclass::MatrixValueType MatrixValueType;
00081 typedef typename Superclass::OffsetType OffsetType;
00082
00085 typedef typename Superclass::InverseTransformBaseType InverseTransformBaseType;
00086 typedef typename InverseTransformBaseType::Pointer InverseTransformBasePointer;
00087
00088
00089
00098 void SetParameters( const ParametersType & parameters );
00099 const ParametersType& GetParameters(void) const;
00101
00108 const JacobianType & GetJacobian(const InputPointType &point ) const;
00109
00111 bool GetInverse(Self* inverse) const;
00112
00114 virtual InverseTransformBasePointer GetInverseTransform() const;
00115
00116 protected:
00118 CenteredAffineTransform();
00119
00121 virtual ~CenteredAffineTransform();
00122
00123 private:
00124 CenteredAffineTransform(const Self & other);
00125 const Self & operator=( const Self & );
00126
00127 };
00128
00129 }
00130
00132 #define ITK_TEMPLATE_CenteredAffineTransform(_, EXPORT, x, y) namespace itk { \
00133 _(2(class EXPORT CenteredAffineTransform< ITK_TEMPLATE_2 x >)) \
00134 namespace Templates { typedef CenteredAffineTransform< ITK_TEMPLATE_2 x > \
00135 CenteredAffineTransform##y; } \
00136 }
00137
00138
00139 #if ITK_TEMPLATE_EXPLICIT
00140 # include "Templates/itkCenteredAffineTransform+-.h"
00141 #endif
00142
00143 #if ITK_TEMPLATE_TXX
00144 # include "itkCenteredAffineTransform.txx"
00145 #endif
00146
00147
00148 #endif
00149