00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef __itkCenteredRigid2DTransform_h
00019 #define __itkCenteredRigid2DTransform_h
00020
00021 #include <iostream>
00022 #include "itkRigid2DTransform.h"
00023
00024 namespace itk
00025 {
00026
00051 template < class TScalarType=double >
00052 class ITK_EXPORT CenteredRigid2DTransform :
00053 public Rigid2DTransform< TScalarType >
00054 {
00055 public:
00057 typedef CenteredRigid2DTransform Self;
00058 typedef Rigid2DTransform< TScalarType > Superclass;
00059 typedef SmartPointer<Self> Pointer;
00060 typedef SmartPointer<const Self> ConstPointer;
00061
00063 itkNewMacro( Self );
00064
00066 itkTypeMacro( CenteredRigid2DTransform, Rigid2DTransform );
00067
00069 itkStaticConstMacro(SpaceDimension, unsigned int, 2);
00070 itkStaticConstMacro(OutputSpaceDimension, unsigned int, 2);
00071 itkStaticConstMacro(ParametersDimension, unsigned int, 5);
00072
00074 typedef typename Superclass::ScalarType ScalarType;
00075
00077 typedef typename Superclass::ParametersType ParametersType;
00078
00080 typedef typename Superclass::JacobianType JacobianType;
00081
00083 typedef typename Superclass::OffsetType OffsetType;
00084
00086 typedef typename Superclass::InputPointType InputPointType;
00087 typedef typename Superclass::OutputPointType OutputPointType;
00088
00090 typedef typename Superclass::InputVectorType InputVectorType;
00091 typedef typename Superclass::OutputVectorType OutputVectorType;
00092
00094 typedef typename Superclass::InputCovariantVectorType InputCovariantVectorType;
00095 typedef typename Superclass::OutputCovariantVectorType OutputCovariantVectorType;
00096
00098 typedef typename Superclass::InputVnlVectorType InputVnlVectorType;
00099 typedef typename Superclass::OutputVnlVectorType OutputVnlVectorType;
00100
00109 void SetParameters( const ParametersType & parameters );
00110
00119 const ParametersType & GetParameters( void ) const;
00120
00125 const JacobianType & GetJacobian(const InputPointType &point ) const;
00126
00129 virtual void SetFixedParameters( const ParametersType & );
00130
00133 virtual const ParametersType& GetFixedParameters(void) const;
00134
00139 void CloneInverseTo( Pointer & newinverse ) const;
00140
00145 void CloneTo( Pointer & clone ) const;
00146
00147 protected:
00148 CenteredRigid2DTransform();
00149 ~CenteredRigid2DTransform(){};
00150
00151 CenteredRigid2DTransform( unsigned int outputSpaceDimension,
00152 unsigned int parametersDimension);
00153
00154 void PrintSelf(std::ostream &os, Indent indent) const;
00155
00156 private:
00157 CenteredRigid2DTransform(const Self&);
00158 void operator=(const Self&);
00159
00160 };
00161
00162
00163 }
00164
00165
00166 #ifndef ITK_MANUAL_INSTANTIATION
00167 #include "itkCenteredRigid2DTransform.txx"
00168 #endif
00169
00170 #endif