Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkTransformParameters.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 MITKTRANSFORMPARAMETERS_H
18 #define MITKTRANSFORMPARAMETERS_H
19 
21 #include "mitkCommon.h"
22 #include <itkArray.h>
23 #include <itkObjectFactory.h>
24 
25 namespace mitk
26 {
45  {
46  public:
48  itkFactorylessNewMacro(Self) itkCloneMacro(Self)
49 
50 
54  TRANSLATIONTRANSFORM = 0,
70  CENTEREDSIMILARITY2DTRANSFORM
71  };
72 
76  itkSetMacro(Transform, int);
80  itkGetMacro(Transform, int);
81 
87  void SetScales(itk::Array<double> scales);
93  itk::Array<double> GetScales();
94 
98  void SetInitialParameters(itk::Array<double> initialParameters);
102  itk::Array<double> GetInitialParameters();
103 
109  itkSetMacro(TransformInitializerOn, bool);
115  itkGetMacro(TransformInitializerOn, bool);
116 
122  itkSetMacro(MomentsOn, bool);
128  itkGetMacro(MomentsOn, bool);
129 
136  itkSetMacro(UseOptimizerScales, bool);
143  itkGetMacro(UseOptimizerScales, bool);
144 
148  itkSetMacro(Angle, float);
152  itkGetMacro(Angle, float);
153 
157  itkSetMacro(Scale, float);
161  itkGetMacro(Scale, float);
162 
166  itkSetMacro(TransformCenterX, double);
170  itkGetMacro(TransformCenterX, double);
171 
175  itkSetMacro(TransformCenterY, double);
179  itkGetMacro(TransformCenterY, double);
180 
184  itkSetMacro(TransformCenterZ, double);
188  itkGetMacro(TransformCenterZ, double);
189 
190  protected:
193 
194  int m_Transform;
195  float m_Angle;
196  float m_Scale;
203  itk::Array<double> m_Scales;
204  itk::Array<double> m_InitialParameters;
205  };
206 
207 } // namespace mitk
208 
209 #endif // MITKTRANSFORMPARAMETERS_H
This class is used to hold all transform parameters needed for a rigid registration process...
#define MITKRIGIDREGISTRATION_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
TransformType
Unique integer value for every transform.
#define mitkClassMacroItkParent(className, SuperClassName)
Definition: mitkCommon.h:53
class representing a transfrom in 3D
Definition: mitkTransform.h:40
itk::Array< double > m_InitialParameters