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
00053 template < class TScalarType=double >
00054 class ITK_EXPORT CenteredSimilarity2DTransform :
00055 public Similarity2DTransform< TScalarType >
00056 {
00057 public:
00059 typedef CenteredSimilarity2DTransform Self;
00060 typedef Similarity2DTransform< TScalarType > Superclass;
00061 typedef SmartPointer<Self> Pointer;
00062 typedef SmartPointer<const Self> ConstPointer;
00063
00065 itkNewMacro( Self );
00066
00068 itkTypeMacro( CenteredSimilarity2DTransform, Similarity2DTransform );
00069
00071 itkStaticConstMacro(SpaceDimension, unsigned int, 2);
00072 itkStaticConstMacro(InputSpaceDimension, unsigned int, 2);
00073 itkStaticConstMacro(OutputSpaceDimension, unsigned int, 2);
00074 itkStaticConstMacro(ParametersDimension, unsigned int, 6);
00075
00077 typedef typename Superclass::ScalarType ScalarType;
00078
00080 typedef typename Superclass::ParametersType ParametersType;
00081
00083 typedef typename Superclass::JacobianType JacobianType;
00084
00086 typedef typename Superclass::OffsetType OffsetType;
00087
00089 typedef typename Superclass::InputPointType InputPointType;
00090 typedef typename Superclass::OutputPointType OutputPointType;
00091
00093 typedef typename Superclass::InputVectorType InputVectorType;
00094 typedef typename Superclass::OutputVectorType OutputVectorType;
00095
00097 typedef typename Superclass::InputCovariantVectorType InputCovariantVectorType;
00098 typedef typename Superclass::OutputCovariantVectorType OutputCovariantVectorType;
00099
00101 typedef typename Superclass::InputVnlVectorType InputVnlVectorType;
00102 typedef typename Superclass::OutputVnlVectorType OutputVnlVectorType;
00103
00113 void SetParameters( const ParametersType & parameters );
00114
00124 const ParametersType & GetParameters( void ) const;
00125
00130 const JacobianType & GetJacobian(const InputPointType &point ) const;
00131
00134 virtual void SetFixedParameters( const ParametersType & );
00135
00138 virtual const ParametersType& GetFixedParameters(void) const;
00139
00144 void CloneInverseTo( Pointer & newinverse ) const;
00145
00150 void CloneTo( Pointer & clone ) const;
00151
00152 protected:
00153 CenteredSimilarity2DTransform();
00154 CenteredSimilarity2DTransform( unsigned int spaceDimension,
00155 unsigned int parametersDimension);
00156
00157 ~CenteredSimilarity2DTransform(){};
00158 void PrintSelf(std::ostream &os, Indent indent) const;
00159
00160 private:
00161 CenteredSimilarity2DTransform(const Self&);
00162 void operator=(const Self&);
00163
00164 };
00165
00166
00167 }
00168
00169
00170 #ifndef ITK_MANUAL_INSTANTIATION
00171 #include "itkCenteredSimilarity2DTransform.txx"
00172 #endif
00173
00174 #endif