MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
mitkStaticIGTHelperFunctions.h
Go to the documentation of this file.
1/*============================================================================
2
3The Medical Imaging Interaction Toolkit (MITK)
4
5Copyright (c) German Cancer Research Center (DKFZ)
6All rights reserved.
7
8Use of this source code is governed by a 3-clause BSD license that can be
9found in the LICENSE file.
10
11============================================================================*/
12
13#ifndef mitkStaticIGTHelperFunctions_h
14#define mitkStaticIGTHelperFunctions_h
15
16#include <mitkCommon.h>
17#include <itkMatrix.h>
18#include <mitkQuaternion.h>
19#include "MitkIGTBaseExports.h"
20#include <mitkPointSet.h>
21#include <vtkLandmarkTransform.h>
22#include <vtkSmartPointer.h>
23
24namespace mitk
25{
26 namespace StaticIGTHelperFunctions
27 {
34 MITKIGTBASE_EXPORT double GetAngleBetweenTwoQuaterions(mitk::Quaternion a, mitk::Quaternion b, itk::Vector<double,3> rotationVector);
35
41 MITKIGTBASE_EXPORT double GetAngleBetweenTwoQuaterions(mitk::Quaternion a, mitk::Quaternion b);
42
44 MITKIGTBASE_EXPORT itk::Matrix<double,3,3> ConvertEulerAnglesToRotationMatrix(double alpha, double beta, double gamma);
45
53 MITKIGTBASE_EXPORT double ComputeFRE(mitk::PointSet::Pointer imageFiducials, mitk::PointSet::Pointer realWorldFiducials, vtkSmartPointer<vtkLandmarkTransform> transform = nullptr);
54 }
55}
56
57#endif
MITKIGTBASE_EXPORT double GetAngleBetweenTwoQuaterions(mitk::Quaternion a, mitk::Quaternion b, itk::Vector< double, 3 > rotationVector)
MITKIGTBASE_EXPORT double ComputeFRE(mitk::PointSet::Pointer imageFiducials, mitk::PointSet::Pointer realWorldFiducials, vtkSmartPointer< vtkLandmarkTransform > transform=nullptr)
Computes the fiducial registration error out of two sets of fiducials. The two sets must have the sam...
MITKIGTBASE_EXPORT itk::Matrix< double, 3, 3 > ConvertEulerAnglesToRotationMatrix(double alpha, double beta, double gamma)
IGT Exceptions.