Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkTransformParameters.cpp
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 
18 
19 namespace mitk
20 {
22  : m_Transform(TRANSLATIONTRANSFORM),
23  m_Angle(0.0),
24  m_Scale(1.0),
25  m_TransformInitializerOn(true),
26  m_MomentsOn(true),
27  m_UseOptimizerScales(true),
28  m_TransformCenterX(0.0),
29  m_TransformCenterY(0.0),
30  m_TransformCenterZ(0.0)
31  {
32  m_InitialParameters.set_size(0);
33  m_Scales.SetSize(16);
34  m_Scales.Fill(1.0);
35  }
36 
37  void TransformParameters::SetScales(itk::Array<double> scales) { m_Scales = scales; }
38  itk::Array<double> TransformParameters::GetScales() { return m_Scales; }
39  void TransformParameters::SetInitialParameters(itk::Array<double> initialParameters)
40  {
41  m_InitialParameters = initialParameters;
42  }
43 
45 } // namespace mitk
DataCollection - Class to facilitate loading/accessing structured data.
itk::Array< double > GetInitialParameters()
Returns an array that holds the initial transform parameters.
void SetInitialParameters(itk::Array< double > initialParameters)
Sets an array that holds the initial transform parameters.
itk::Array< double > GetScales()
Returns an array that holds the magnitudes of changes for the transforms degrees of freedom...
void SetScales(itk::Array< double > scales)
Sets an array that holds the magnitudes of changes for the transforms degrees of freedom.
itk::Array< double > m_InitialParameters