00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef __itkCenteredSimilarity2DTransform_h
00019 #define __itkCenteredSimilarity2DTransform_h
00020
00021 #include <iostream>
00022 #include "itkSimilarity2DTransform.h"
00023
00024 namespace itk
00025 {
00026
00056 template < class TScalarType=double >
00057 class ITK_EXPORT CenteredSimilarity2DTransform :
00058 public Similarity2DTransform< TScalarType >
00059 {
00060 public:
00062 typedef CenteredSimilarity2DTransform Self;
00063 typedef Similarity2DTransform< TScalarType > Superclass;
00064 typedef SmartPointer<Self> Pointer;
00065 typedef SmartPointer<const Self> ConstPointer;
00066
00068 itkNewMacro( Self );
00069
00071 itkTypeMacro( CenteredSimilarity2DTransform, Similarity2DTransform );
00072
00074 itkStaticConstMacro(SpaceDimension, unsigned int, 2);
00075 itkStaticConstMacro(InputSpaceDimension, unsigned int, 2);
00076 itkStaticConstMacro(OutputSpaceDimension, unsigned int, 2);
00077 itkStaticConstMacro(ParametersDimension, unsigned int, 6);
00079
00081 typedef typename Superclass::ScalarType ScalarType;
00082
00084 typedef typename Superclass::ParametersType ParametersType;
00085
00087 typedef typename Superclass::JacobianType JacobianType;
00088
00090 typedef typename Superclass::OffsetType OffsetType;
00091
00093 typedef typename Superclass::InputPointType InputPointType;
00094 typedef typename Superclass::OutputPointType OutputPointType;
00095
00097 typedef typename Superclass::InputVectorType InputVectorType;
00098 typedef typename Superclass::OutputVectorType OutputVectorType;
00099
00101 typedef typename Superclass::InputCovariantVectorType
00102 InputCovariantVectorType;
00103 typedef typename Superclass::OutputCovariantVectorType
00104 OutputCovariantVectorType;
00105
00107 typedef typename Superclass::InputVnlVectorType InputVnlVectorType;
00108 typedef typename Superclass::OutputVnlVectorType OutputVnlVectorType;
00109
00119 void SetParameters( const ParametersType & parameters );
00120
00130 const ParametersType & GetParameters( void ) const;
00131
00136 const JacobianType & GetJacobian(const InputPointType &point ) const;
00137
00140 virtual void SetFixedParameters( const ParametersType & );
00141
00144 virtual const ParametersType& GetFixedParameters(void) const;
00145
00150 void CloneInverseTo( Pointer & newinverse ) const;
00151
00156 void CloneTo( Pointer & clone ) const;
00157
00158 protected:
00159 CenteredSimilarity2DTransform();
00160 CenteredSimilarity2DTransform( unsigned int spaceDimension,
00161 unsigned int parametersDimension);
00162
00163 ~CenteredSimilarity2DTransform(){};
00164 void PrintSelf(std::ostream &os, Indent indent) const;
00165
00166 private:
00167 CenteredSimilarity2DTransform(const Self&);
00168 void operator=(const Self&);
00169
00170 };
00171
00172
00173 }
00174
00175
00176 #define ITK_TEMPLATE_CenteredSimilarity2DTransform(_, EXPORT, x, y) namespace itk { \
00177 _(1(class EXPORT CenteredSimilarity2DTransform< ITK_TEMPLATE_1 x >)) \
00178 namespace Templates { typedef CenteredSimilarity2DTransform< ITK_TEMPLATE_1 x > \
00179 CenteredSimilarity2DTransform##y; } \
00180 }
00181
00182 #if ITK_TEMPLATE_EXPLICIT
00183 # include "Templates/itkCenteredSimilarity2DTransform+-.h"
00184 #endif
00185
00186 #if ITK_TEMPLATE_TXX
00187 # include "itkCenteredSimilarity2DTransform.txx"
00188 #endif
00189
00190 #endif
00191