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

itkCenteredAffineTransform.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkCenteredAffineTransform.h,v $
00005   Language:  C++
00006   Date:      $Date: 2003/02/08 21:19:54 $
00007   Version:   $Revision: 1.1 $
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 __itkCenteredAffineTransform_h
00019 #define __itkCenteredAffineTransform_h
00020 
00021 #include "itkAffineTransform.h"
00022 
00023 namespace itk
00024 {
00025 
00026 
00038 template <
00039  class TScalarType=double,         // Data type for scalars (e.g. float or double)
00040  unsigned int NDimensions=3>       // Number of dimensions in the input space
00041 class CenteredAffineTransform : public AffineTransform< TScalarType, NDimensions >
00042 {
00043 public:
00045   typedef CenteredAffineTransform  Self;
00046   typedef AffineTransform< TScalarType, NDimensions >  Superclass;
00047   typedef SmartPointer<Self>        Pointer;
00048   typedef SmartPointer<const Self>  ConstPointer;
00049   
00051   itkTypeMacro( CenteredAffineTransform, AffineTransform );
00052 
00054   itkNewMacro( Self );
00055 
00057   itkStaticConstMacro(SpaceDimension, unsigned int, NDimensions);
00058   itkStaticConstMacro(ParametersDimension, unsigned int,
00059                       NDimensions*(NDimensions+2));
00060 
00061   
00063   typedef typename Superclass::ParametersType               ParametersType;
00064   typedef typename Superclass::JacobianType                 JacobianType;
00065   typedef typename Superclass::ScalarType                   ScalarType;
00066   typedef typename Superclass::InputVectorType              InputVectorType;
00067   typedef typename Superclass::OutputVectorType             OutputVectorType;
00068   typedef typename Superclass::InputCovariantVectorType     InputCovariantVectorType;
00069   typedef typename Superclass::OutputCovariantVectorType    OutputCovariantVectorType;
00070   typedef typename Superclass::InputVnlVectorType           InputVnlVectorType;
00071   typedef typename Superclass::OutputVnlVectorType          OutputVnlVectorType;
00072   typedef typename Superclass::InputPointType               InputPointType;
00073   typedef typename Superclass::OutputPointType              OutputPointType;
00074   typedef typename Superclass::MatrixType                   MatrixType;
00075   typedef typename Superclass::OffsetType                   OffsetType;
00076 
00077 
00078   
00082   void SetIdentity( void );
00083 
00092   void SetParameters( const ParametersType & parameters );
00093   const ParametersType& GetParameters(void) const;
00094 
00095  
00101   CenteredAffineTransform::Pointer Inverse(void) const;
00102 
00104   void PrintSelf(std::ostream &s, Indent indent) const;
00105 
00112   const JacobianType & GetJacobian(const InputPointType  &point ) const;
00113 
00115   void SetCenter( const InputPointType & center );
00116   itkGetConstReferenceMacro( Center, InputPointType );
00117 
00119   void SetTranslation( const OutputVectorType & translation );
00120   itkGetConstReferenceMacro( Translation, OutputVectorType );
00121  
00124   virtual void ComputeOffset(void);
00125 
00126 protected:
00128      CenteredAffineTransform();      
00129   
00131   virtual ~CenteredAffineTransform();
00132 
00134   void RecomputeInverse();
00135 
00136 private:
00137   CenteredAffineTransform(const Self & other);
00138   const Self & operator=( const Self & );
00139 
00140 
00141   InputPointType      m_Center;
00142 
00143   OutputVectorType    m_Translation;
00144 
00145 
00146 }; //class CenteredAffineTransform
00147 
00148 }  // namespace itk
00149 
00150 
00151 #ifndef ITK_MANUAL_INSTANTIATION
00152 #include "itkCenteredAffineTransform.txx"
00153 #endif
00154 
00155 #endif /* __itkCenteredAffineTransform_h */
00156 
00157 
00158 
00159 
00160 

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