Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkAnisotropicRegistrationCommon.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 __ANISOTROPICREGISTRATIONCOMMON_H__
18 #define __ANISOTROPICREGISTRATIONCOMMON_H__
19 
20 #include <itkMatrix.h>
21 #include <mitkCommon.h>
22 #include <mitkVector.h>
23 
25 
26 // forward declarations
27 class vtkPoints;
28 
29 namespace mitk
30 {
31  class PointSet;
32 
46  {
47  protected:
48  // local typedefs
49 
51  typedef itk::Matrix<double, 3, 3> WeightMatrix;
53  typedef WeightMatrix Rotation;
55  typedef WeightMatrix CovarianceMatrix;
59  typedef std::vector<WeightMatrix> MatrixList;
60 
63  public:
69  static WeightMatrix CalculateWeightMatrix(const CovarianceMatrix &sigma_X, const CovarianceMatrix &sigma_Y);
70 
88  static void TransformPoints(vtkPoints *src,
89  vtkPoints *dst,
90  const Rotation &rotation,
91  const Translation &translation);
92 
107  static void PropagateMatrices(const MatrixList &src, MatrixList &dst, const Rotation &rotation);
108 
123  static double ComputeTargetRegistrationError(const mitk::PointSet *movingTargets,
124  const mitk::PointSet *fixedTargets,
125  const Rotation &rotation,
126  const Translation &translation);
127  };
128 }
129 
130 #endif
DataCollection - Class to facilitate loading/accessing structured data.
static Matrix3D rotation
#define MITKALGORITHMSEXT_EXPORT
Data structure which stores a set of points. Superclass of mitk::Mesh.
Definition: mitkPointSet.h:79
A Class that provides common static functions used by all classes and tests in the anisotropic iterat...