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: 2009-11-29 01:38:00 $
00007   Version:   $Revision: 1.18 $
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::ParametersValueType          ParametersValueType;
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
00069                                                      InputCovariantVectorType;
00070   typedef typename Superclass::OutputCovariantVectorType
00071                                                      OutputCovariantVectorType;
00072 
00073   typedef typename Superclass::InputVnlVectorType           InputVnlVectorType;
00074   typedef typename Superclass::OutputVnlVectorType          OutputVnlVectorType;
00075   typedef typename Superclass::InputPointType               InputPointType;
00076   typedef typename Superclass::InputPointValueType          InputPointValueType;
00077   typedef typename Superclass::OutputVectorValueType        OutputVectorValueType;
00078   typedef typename Superclass::OutputPointType              OutputPointType;
00079   typedef typename Superclass::MatrixType                   MatrixType;
00080   typedef typename Superclass::MatrixValueType              MatrixValueType;
00081   typedef typename Superclass::OffsetType                   OffsetType;
00082 
00085   typedef typename Superclass::InverseTransformBaseType InverseTransformBaseType;
00086   typedef typename InverseTransformBaseType::Pointer    InverseTransformBasePointer;
00087 
00088 
00089   
00098   void SetParameters( const ParametersType & parameters );
00099   const ParametersType& GetParameters(void) const;
00101 
00108   const JacobianType & GetJacobian(const InputPointType  &point ) const;
00109 
00111   bool GetInverse(Self* inverse) const;
00112 
00114   virtual InverseTransformBasePointer GetInverseTransform() const;
00115 
00116 protected:
00118   CenteredAffineTransform();
00119 
00121   virtual ~CenteredAffineTransform();
00122 
00123 private:
00124   CenteredAffineTransform(const Self & other);
00125   const Self & operator=( const Self & );
00126 
00127 }; //class CenteredAffineTransform
00128 
00129 }  // namespace itk
00130 
00132 #define ITK_TEMPLATE_CenteredAffineTransform(_, EXPORT, x, y) namespace itk { \
00133   _(2(class EXPORT CenteredAffineTransform< ITK_TEMPLATE_2 x >)) \
00134   namespace Templates { typedef CenteredAffineTransform< ITK_TEMPLATE_2 x > \
00135                                             CenteredAffineTransform##y; } \
00136   }
00137 
00138 
00139 #if ITK_TEMPLATE_EXPLICIT
00140 # include "Templates/itkCenteredAffineTransform+-.h"
00141 #endif
00142 
00143 #if ITK_TEMPLATE_TXX
00144 # include "itkCenteredAffineTransform.txx"
00145 #endif
00146 
00147 
00148 #endif /* __itkCenteredAffineTransform_h */
00149 

Generated at Fri Apr 16 18:02:17 2010 for ITK by doxygen 1.6.1 written by Dimitri van Heesch, © 1997-2000