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
00041
template <
00042
class TScalarType=
double,
00043
unsigned int NDimensions=3>
00044 class ITK_EXPORT CenteredAffineTransform :
public AffineTransform< TScalarType, 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));
00063
00064
00066
typedef typename Superclass::ParametersType
ParametersType;
00067 typedef typename Superclass::JacobianType
JacobianType;
00068 typedef typename Superclass::ScalarType
ScalarType;
00069 typedef typename Superclass::InputVectorType
InputVectorType;
00070 typedef typename Superclass::OutputVectorType
OutputVectorType;
00071 typedef typename Superclass::InputCovariantVectorType
InputCovariantVectorType;
00072 typedef typename Superclass::OutputCovariantVectorType
OutputCovariantVectorType;
00073 typedef typename Superclass::InputVnlVectorType
InputVnlVectorType;
00074 typedef typename Superclass::OutputVnlVectorType
OutputVnlVectorType;
00075 typedef typename Superclass::InputPointType
InputPointType;
00076 typedef typename Superclass::OutputPointType
OutputPointType;
00077 typedef typename Superclass::MatrixType
MatrixType;
00078 typedef typename Superclass::OffsetType
OffsetType;
00079
00080
00081
00085
void SetIdentity(
void );
00086
00095
void SetParameters(
const ParametersType & parameters );
00096
const ParametersType& GetParameters(
void) const;
00097
00098
00104 typename CenteredAffineTransform::
Pointer Inverse(
void) const;
00105
00107
void PrintSelf(std::ostream &s,
Indent indent) const;
00108
00115 const
JacobianType & GetJacobian(const
InputPointType &point ) const;
00116
00118
void SetCenter( const
InputPointType & center );
00119 itkGetConstReferenceMacro( Center,
InputPointType );
00120
00122
void SetTranslation( const
OutputVectorType & translation );
00123 itkGetConstReferenceMacro( Translation,
OutputVectorType );
00124
00128 virtual
void ComputeOffset(
void);
00129
00130 protected:
00132 CenteredAffineTransform();
00133
00135 virtual ~CenteredAffineTransform();
00136
00137 private:
00138 CenteredAffineTransform(const
Self & other);
00139 const
Self & operator=( const
Self & );
00140
00141
00142 InputPointType m_Center;
00143
00144 OutputVectorType m_Translation;
00145
00146
00147 };
00148
00149 }
00150
00151
00152 #ifndef ITK_MANUAL_INSTANTIATION
00153 #include "itkCenteredAffineTransform.txx"
00154 #endif
00155
00156 #endif
00157
00158
00159
00160
00161