itkCenteredVersorTransformInitializer.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
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(InputSpaceDimension, unsigned int,
00069 Superclass::InputSpaceDimension);
00070 itkStaticConstMacro(OutputSpaceDimension, unsigned int,
00071 Superclass::OutputSpaceDimension);
00073
00074
00076 typedef typename Superclass::FixedImageType FixedImageType;
00077 typedef typename Superclass::MovingImageType MovingImageType;
00078
00079 typedef typename Superclass::FixedImagePointer FixedImagePointer;
00080 typedef typename Superclass::MovingImagePointer MovingImagePointer;
00081
00083 typedef typename Superclass::OffsetType OffsetType;
00084
00086 typedef typename Superclass::InputPointType InputPointType;
00087
00089 typedef typename Superclass::OutputVectorType OutputVectorType;
00090
00092 void InitializeTransform();
00093
00096 itkSetMacro( ComputeRotation, bool );
00097 itkGetMacro( ComputeRotation, bool );
00098 itkBooleanMacro( ComputeRotation );
00100
00101 protected:
00102 CenteredVersorTransformInitializer();
00103 ~CenteredVersorTransformInitializer(){};
00104
00105 void PrintSelf(std::ostream &os, Indent indent) const;
00106
00107 private:
00108 CenteredVersorTransformInitializer(const Self&);
00109 void operator=(const Self&);
00110
00111 bool m_ComputeRotation;
00112 };
00113
00114
00115 }
00116
00117
00118 #define ITK_TEMPLATE_CenteredVersorTransformInitializer(_, EXPORT, x, y) namespace itk { \
00119 _(2(class EXPORT CenteredVersorTransformInitializer< ITK_TEMPLATE_2 x >)) \
00120 namespace Templates { typedef CenteredVersorTransformInitializer< ITK_TEMPLATE_2 x > \
00121 CenteredVersorTransformInitializer##y; } \
00122 }
00123
00124 #if ITK_TEMPLATE_EXPLICIT
00125 # include "Templates/itkCenteredVersorTransformInitializer+-.h"
00126 #endif
00127
00128 #if ITK_TEMPLATE_TXX
00129 # include "itkCenteredVersorTransformInitializer.txx"
00130 #endif
00131
00132 #endif
00133