Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkSimilarity2DTransform.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkSimilarity2DTransform.h,v $
00005   Language:  C++
00006   Date:      $Date: 2003/01/17 00:41:49 $
00007   Version:   $Revision: 1.4 $
00008 
00009   Copyright (c) 2002 Insight Consortium. All rights reserved.
00010   See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
00011 
00012      This software is distributed WITHOUT ANY WARRANTY; without even 
00013      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00014      PURPOSE.  See the above copyright notices for more information.
00015 
00016 =========================================================================*/
00017 
00018 #ifndef __itkSimilarity2DTransform_h
00019 #define __itkSimilarity2DTransform_h
00020 
00021 #include <iostream>
00022 #include "itkCenteredRigid2DTransform.h"
00023 
00024 namespace itk
00025 {
00026 
00034 template < class TScalarType=double >    // Data type for scalars (float or double)
00035 class ITK_EXPORT Similarity2DTransform : 
00036             public CenteredRigid2DTransform< TScalarType > 
00037 {
00038 public:
00040   typedef Similarity2DTransform Self;
00041   typedef CenteredRigid2DTransform< TScalarType >   Superclass;
00042   typedef SmartPointer<Self>        Pointer;
00043   typedef SmartPointer<const Self>  ConstPointer;
00044     
00046   itkNewMacro( Self );
00047 
00049   itkTypeMacro( Similarity2DTransform, CenteredRigid2DTransform );
00050 
00052   itkStaticConstMacro(SpaceDimension,           unsigned int, 2);
00053   itkStaticConstMacro(InputSpaceDimension,      unsigned int, 2);
00054   itkStaticConstMacro(OutputSpaceDimension,     unsigned int, 2);
00055   itkStaticConstMacro(ParametersDimension,      unsigned int, 6);
00056 
00058   typedef typename Superclass::ScalarType  ScalarType;
00059 
00061   typedef typename Superclass::ParametersType  ParametersType;
00062 
00064   typedef typename Superclass::JacobianType  JacobianType;
00065   
00067   typedef typename Superclass::OffsetType  OffsetType;
00068 
00070   typedef typename Superclass::InputPointType   InputPointType;
00071   typedef typename Superclass::OutputPointType  OutputPointType;
00072   
00074   typedef typename Superclass::InputVectorType   InputVectorType;
00075   typedef typename Superclass::OutputVectorType  OutputVectorType;
00076   
00078   typedef typename Superclass::InputCovariantVectorType   InputCovariantVectorType;
00079   typedef typename Superclass::OutputCovariantVectorType  OutputCovariantVectorType;
00080   
00082   typedef typename Superclass::InputVnlVectorType   InputVnlVectorType;
00083   typedef typename Superclass::OutputVnlVectorType  OutputVnlVectorType;
00084   
00089   void SetParameters( const ParametersType & parameters );
00090 
00092   void SetScale(TScalarType scale);
00093 
00099   const ParametersType & GetParameters( void ) const;
00100 
00101  
00106   const JacobianType & GetJacobian(const InputPointType  &point ) const;
00107 
00110   virtual void SetIdentity( void );
00111 
00112 
00113 protected:
00114   Similarity2DTransform();
00115   ~Similarity2DTransform(){};
00116   void PrintSelf(std::ostream &os, Indent indent) const;
00117 
00119   virtual void ComputeMatrixAndOffset(void);
00120 
00121 private:
00122   Similarity2DTransform(const Self&); //purposely not implemented
00123   void operator=(const Self&); //purposely not implemented
00124 
00125   TScalarType m_Scale; 
00126 
00127 }; //class Similarity2DTransform
00128 
00129 
00130 }  // namespace itk
00131 
00132 
00133 #ifndef ITK_MANUAL_INSTANTIATION
00134 #include "itkSimilarity2DTransform.txx"
00135 #endif
00136 
00137 #endif /* __itkSimilarity2DTransform_h */

Generated at Fri May 21 01:15:18 2004 for ITK by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2000