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

itkCenteredVersorTransformInitializer.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkCenteredVersorTransformInitializer.h,v $
00005   Language:  C++
00006   Date:      $Date: 2007/01/30 20:56:07 $
00007   Version:   $Revision: 1.4 $
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 __itkCenteredVersorTransformInitializer_h
00019 #define __itkCenteredVersorTransformInitializer_h
00020 
00021 
00022 #include "itkCenteredTransformInitializer.h"
00023 #include "itkVersorRigid3DTransform.h"
00024 
00025 
00026 namespace itk
00027 {
00028 
00041 template < class TFixedImage,
00042            class TMovingImage > 
00043 class ITK_EXPORT CenteredVersorTransformInitializer : 
00044                       public CenteredTransformInitializer< 
00045                                     VersorRigid3DTransform<double>, 
00046                                     TFixedImage,TMovingImage> 
00047 {
00048 public:
00050   typedef CenteredVersorTransformInitializer      Self;
00051   typedef CenteredTransformInitializer< 
00052                VersorRigid3DTransform<double>, 
00053                TFixedImage,TMovingImage>          Superclass;
00054   typedef SmartPointer<Self>                      Pointer;
00055   typedef SmartPointer<const Self>                ConstPointer;
00056 
00058   itkNewMacro( Self );
00059 
00061   itkTypeMacro( CenteredVersorTransformInitializer, Object );
00062 
00064   typedef typename Superclass::TransformType        TransformType;
00065   typedef typename Superclass::TransformPointer     TransformPointer;
00066 
00068   itkStaticConstMacro(SpaceDimension, unsigned int, Superclass::SpaceDimension);
00069   itkStaticConstMacro(InputSpaceDimension, unsigned int, 
00070                                                Superclass::InputSpaceDimension);
00071   itkStaticConstMacro(OutputSpaceDimension, unsigned int, 
00072                                               Superclass::OutputSpaceDimension);
00074 
00075   
00077   typedef   typename Superclass::FixedImageType   FixedImageType;
00078   typedef   typename Superclass::MovingImageType  MovingImageType;
00079 
00080   typedef   typename Superclass::FixedImagePointer   FixedImagePointer;
00081   typedef   typename Superclass::MovingImagePointer  MovingImagePointer;
00082 
00084   typedef typename Superclass::OffsetType  OffsetType;
00085 
00087   typedef typename Superclass::InputPointType   InputPointType;
00088 
00090   typedef typename Superclass::OutputVectorType  OutputVectorType;
00091 
00093   void InitializeTransform() const;
00094 
00095 protected:
00096   CenteredVersorTransformInitializer();
00097   ~CenteredVersorTransformInitializer(){};
00098 
00099   void PrintSelf(std::ostream &os, Indent indent) const;
00100 
00101 private:
00102   CenteredVersorTransformInitializer(const Self&); //purposely not implemented
00103   void operator=(const Self&); //purposely not implemented
00104 
00105 }; //class CenteredVersorTransformInitializer
00106 
00107 
00108 }  // namespace itk
00109 
00110 // Define instantiation macro for this template.
00111 #define ITK_TEMPLATE_CenteredVersorTransformInitializer(_, EXPORT, x, y) namespace itk { \
00112   _(2(class EXPORT CenteredVersorTransformInitializer< ITK_TEMPLATE_2 x >)) \
00113   namespace Templates { typedef CenteredVersorTransformInitializer< ITK_TEMPLATE_2 x > \
00114                                CenteredVersorTransformInitializer##y; } \
00115   }
00116 
00117 #if ITK_TEMPLATE_EXPLICIT
00118 # include "Templates/itkCenteredVersorTransformInitializer+-.h"
00119 #endif
00120 
00121 #if ITK_TEMPLATE_TXX
00122 # include "itkCenteredVersorTransformInitializer.txx"
00123 #endif
00124 
00125 #endif /* __itkCenteredVersorTransformInitializer_h */
00126 

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