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/01/30 20:56:07 $
00007   Version:   $Revision: 1.13 $
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 
00040 template <
00041  class TScalarType=double,         // Data type for scalars
00042  unsigned int NDimensions=3>       // Number of dimensions in the input space
00043 class ITK_EXPORT CenteredAffineTransform : public AffineTransform< TScalarType, 
00044                                                                   NDimensions >
00045 {
00046 public:
00048   typedef CenteredAffineTransform                      Self;
00049   typedef AffineTransform< TScalarType, NDimensions >  Superclass;
00050   typedef SmartPointer<Self>                           Pointer;
00051   typedef SmartPointer<const Self>                     ConstPointer;
00052 
00054   itkTypeMacro( CenteredAffineTransform, AffineTransform );
00055 
00057   itkNewMacro( Self );
00058 
00060   itkStaticConstMacro(SpaceDimension, unsigned int, NDimensions);
00061   itkStaticConstMacro(ParametersDimension, unsigned int,
00062                       NDimensions*(NDimensions+2));
00064 
00065   
00067   typedef typename Superclass::ParametersType               ParametersType;
00068   typedef typename Superclass::JacobianType                 JacobianType;
00069   typedef typename Superclass::ScalarType                   ScalarType;
00070   typedef typename Superclass::InputVectorType              InputVectorType;
00071   typedef typename Superclass::OutputVectorType             OutputVectorType;
00072   typedef typename Superclass::InputCovariantVectorType
00073                                                      InputCovariantVectorType;
00074   typedef typename Superclass::OutputCovariantVectorType
00075                                                      OutputCovariantVectorType;
00076 
00077   typedef typename Superclass::InputVnlVectorType           InputVnlVectorType;
00078   typedef typename Superclass::OutputVnlVectorType          OutputVnlVectorType;
00079   typedef typename Superclass::InputPointType               InputPointType;
00080   typedef typename Superclass::OutputPointType              OutputPointType;
00081   typedef typename Superclass::MatrixType                   MatrixType;
00082   typedef typename Superclass::OffsetType                   OffsetType;
00083 
00084 
00085   
00094   void SetParameters( const ParametersType & parameters );
00095   const ParametersType& GetParameters(void) const;
00097 
00104   const JacobianType & GetJacobian(const InputPointType  &point ) const;
00105 
00106 protected:
00108   CenteredAffineTransform();
00109 
00111   virtual ~CenteredAffineTransform();
00112 
00113 private:
00114   CenteredAffineTransform(const Self & other);
00115   const Self & operator=( const Self & );
00116 
00117 }; //class CenteredAffineTransform
00118 
00119 }  // namespace itk
00120 
00121 // Define instantiation macro for this template.
00122 #define ITK_TEMPLATE_CenteredAffineTransform(_, EXPORT, x, y) namespace itk { \
00123   _(2(class EXPORT CenteredAffineTransform< ITK_TEMPLATE_2 x >)) \
00124   namespace Templates { typedef CenteredAffineTransform< ITK_TEMPLATE_2 x > \
00125                                             CenteredAffineTransform##y; } \
00126   }
00127 
00128 #if ITK_TEMPLATE_EXPLICIT
00129 # include "Templates/itkCenteredAffineTransform+-.h"
00130 #endif
00131 
00132 #if ITK_TEMPLATE_TXX
00133 # include "itkCenteredAffineTransform.txx"
00134 #endif
00135 
00136 
00137 #endif /* __itkCenteredAffineTransform_h */
00138 

Generated at Sun Mar 11 23:42:55 2007 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000