Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkTransformFactory.h
Go to the documentation of this file.
1 /*===================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef MITKTRANSFORMFACTORY_H
18 #define MITKTRANSFORMFACTORY_H
19 
21 #include "itkImage.h"
22 #include "itkTransform.h"
24 
25 namespace mitk
26 {
45  template <class TPixelType, unsigned int VImageDimension>
47  {
48  public:
50 
52  itkFactorylessNewMacro(Self) itkCloneMacro(Self)
53 
54  typedef typename itk::Image<TPixelType, VImageDimension> FixedImageType;
55  typedef typename itk::Image<TPixelType, VImageDimension> MovingImageType;
56  typedef typename itk::Image<TPixelType, 2> FixedImage2DType;
57  typedef typename itk::Image<TPixelType, 2> MovingImage2DType;
58  typedef typename itk::Image<TPixelType, 3> FixedImage3DType;
59  typedef typename itk::Image<TPixelType, 3> MovingImage3DType;
60 
61  typedef typename itk::Transform<double, VImageDimension, VImageDimension> TransformType;
62 
63  typedef typename TransformType::Pointer TransformPointer;
64 
69  TransformPointer GetTransform();
70 
74  void SetFixedImage(FixedImageType *fixed);
75 
79  void SetMovingImage(MovingImageType *moving);
80 
84  void SetTransformParameters(TransformParameters::Pointer transformParameters)
85  {
86  m_TransformParameters = transformParameters;
87  }
88 
92  TransformParameters::Pointer GetTransformParameters() { return m_TransformParameters; }
93  protected:
96 
97  TransformParameters::Pointer m_TransformParameters;
104  };
105 
106 } // namespace mitk
107 
108 #include "mitkTransformFactory.txx"
109 
110 #endif // MITKTRANSFORMFACTORY_H
MovingImageType::Pointer m_MovingImage
This class creates a transform for a rigid registration process.
itk::SmartPointer< Self > Pointer
itk::Image< TPixelType, VImageDimension > MovingImageType
MovingImage3DType::Pointer m_MovingImage3D
FixedImageType::Pointer m_FixedImage
FixedImage3DType::Pointer m_FixedImage3D
This class is used to hold all transform parameters needed for a rigid registration process...
itk::Transform< double, VImageDimension, VImageDimension > TransformType
FixedImage2DType::Pointer m_FixedImage2D
#define MITKRIGIDREGISTRATION_EXPORT
itk::Image< TPixelType, 2 > FixedImage2DType
DataCollection - Class to facilitate loading/accessing structured data.
itk::Image< TPixelType, 2 > MovingImage2DType
itk::Image< TPixelType, 3 > MovingImage3DType
#define mitkClassMacroItkParent(className, SuperClassName)
Definition: mitkCommon.h:53
Image class for storing images.
Definition: mitkImage.h:76
class representing a transfrom in 3D
Definition: mitkTransform.h:40
TransformParameters::Pointer GetTransformParameters()
Returns the instance to the transform parameters class which holds all parameters for the new transfo...
itk::Image< TPixelType, VImageDimension > FixedImageType
TransformType::Pointer TransformPointer
itk::Image< TPixelType, 3 > FixedImage3DType
MovingImage2DType::Pointer m_MovingImage2D