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: 2007/12/13 16:17:55 $
00007   Version:   $Revision: 1.14 $
00008 
00009   Copyright (c) Insight Software 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 
00035 template <
00036  class TScalarType=double,         // Data type for scalars
00037  unsigned int NDimensions=3>       // Number of dimensions in the input space
00038 class ITK_EXPORT CenteredAffineTransform : public AffineTransform< TScalarType, 
00039                                                                   NDimensions >
00040 {
00041 public:
00043   typedef CenteredAffineTransform                      Self;
00044   typedef AffineTransform< TScalarType, NDimensions >  Superclass;
00045   typedef SmartPointer<Self>                           Pointer;
00046   typedef SmartPointer<const Self>                     ConstPointer;
00047 
00049   itkTypeMacro( CenteredAffineTransform, AffineTransform );
00050 
00052   itkNewMacro( Self );
00053 
00055   itkStaticConstMacro(SpaceDimension, unsigned int, NDimensions);
00056   itkStaticConstMacro(ParametersDimension, unsigned int,
00057                       NDimensions*(NDimensions+2));
00059 
00060   
00062   typedef typename Superclass::ParametersType               ParametersType;
00063   typedef typename Superclass::JacobianType                 JacobianType;
00064   typedef typename Superclass::ScalarType                   ScalarType;
00065   typedef typename Superclass::InputVectorType              InputVectorType;
00066   typedef typename Superclass::OutputVectorType             OutputVectorType;
00067   typedef typename Superclass::InputCovariantVectorType
00068                                                      InputCovariantVectorType;
00069   typedef typename Superclass::OutputCovariantVectorType
00070                                                      OutputCovariantVectorType;
00071 
00072   typedef typename Superclass::InputVnlVectorType           InputVnlVectorType;
00073   typedef typename Superclass::OutputVnlVectorType          OutputVnlVectorType;
00074   typedef typename Superclass::InputPointType               InputPointType;
00075   typedef typename Superclass::OutputPointType              OutputPointType;
00076   typedef typename Superclass::MatrixType                   MatrixType;
00077   typedef typename Superclass::OffsetType                   OffsetType;
00078 
00079 
00080   
00089   void SetParameters( const ParametersType & parameters );
00090   const ParametersType& GetParameters(void) const;
00092 
00099   const JacobianType & GetJacobian(const InputPointType  &point ) const;
00100 
00101 protected:
00103   CenteredAffineTransform();
00104 
00106   virtual ~CenteredAffineTransform();
00107 
00108 private:
00109   CenteredAffineTransform(const Self & other);
00110   const Self & operator=( const Self & );
00111 
00112 }; //class CenteredAffineTransform
00113 
00114 }  // namespace itk
00115 
00116 // Define instantiation macro for this template.
00117 #define ITK_TEMPLATE_CenteredAffineTransform(_, EXPORT, x, y) namespace itk { \
00118   _(2(class EXPORT CenteredAffineTransform< ITK_TEMPLATE_2 x >)) \
00119   namespace Templates { typedef CenteredAffineTransform< ITK_TEMPLATE_2 x > \
00120                                             CenteredAffineTransform##y; } \
00121   }
00122 
00123 #if ITK_TEMPLATE_EXPLICIT
00124 # include "Templates/itkCenteredAffineTransform+-.h"
00125 #endif
00126 
00127 #if ITK_TEMPLATE_TXX
00128 # include "itkCenteredAffineTransform.txx"
00129 #endif
00130 
00131 
00132 #endif /* __itkCenteredAffineTransform_h */
00133 

Generated at Tue Jul 29 19:27:07 2008 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000