Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitk::StaticIGTHelperFunctions Class Reference

#include <mitkStaticIGTHelperFunctions.h>

Static Public Member Functions

static double GetAngleBetweenTwoQuaterions (mitk::Quaternion a, mitk::Quaternion b, itk::Vector< double, 3 > rotationVector)
 
static double GetAngleBetweenTwoQuaterions (mitk::Quaternion a, mitk::Quaternion b)
 
static itk::Matrix< double, 3, 3 > ConvertEulerAnglesToRotationMatrix (double alpha, double beta, double gamma)
 
static double ComputeFRE (mitk::PointSet::Pointer imageFiducials, mitk::PointSet::Pointer realWorldFiducials, vtkSmartPointer< vtkLandmarkTransform > transform=NULL)
 Computes the fiducial registration error out of two sets of fiducials. The two sets must have the same size and the points must correspond to each other. More...
 

Detailed Description

Definition at line 25 of file mitkStaticIGTHelperFunctions.h.

Member Function Documentation

double mitk::StaticIGTHelperFunctions::ComputeFRE ( mitk::PointSet::Pointer  imageFiducials,
mitk::PointSet::Pointer  realWorldFiducials,
vtkSmartPointer< vtkLandmarkTransform >  transform = NULL 
)
static

Computes the fiducial registration error out of two sets of fiducials. The two sets must have the same size and the points must correspond to each other.

Parameters
transformThis transform is applied to the image fiducials before the FRE calculation if it is given.
Returns
Returns the FRE. Returns -1 if there was an error.

Definition at line 97 of file mitkStaticIGTHelperFunctions.cpp.

Referenced by QmitkFiducialRegistrationWidget::Register().

itk::Matrix< double, 3, 3 > mitk::StaticIGTHelperFunctions::ConvertEulerAnglesToRotationMatrix ( double  alpha,
double  beta,
double  gamma 
)
static

Converts euler angles (in degrees) to a rotation matrix.

Definition at line 57 of file mitkStaticIGTHelperFunctions.cpp.

References PI.

double mitk::StaticIGTHelperFunctions::GetAngleBetweenTwoQuaterions ( mitk::Quaternion  a,
mitk::Quaternion  b,
itk::Vector< double, 3 >  rotationVector 
)
static

Computes the angle in the plane perpendicular to the rotation axis of the two quaterions. Therefore, a vector is rotated with the difference of both rotations and the angle is computed. In some cases you might want to defice this vector e.g., if working with 5D tools. By default the vector is defined along the Z-axis which works for Aurora 5D tools.

Returns
Returns the angle in degrees.

Definition at line 20 of file mitkStaticIGTHelperFunctions.cpp.

double mitk::StaticIGTHelperFunctions::GetAngleBetweenTwoQuaterions ( mitk::Quaternion  a,
mitk::Quaternion  b 
)
static

Computes the angle in the plane perpendicular to the rotation axis of the two quaterions. Therefore, a vector is rotated with the difference of both rotations and the angle is computed. In some cases you might want to defice this vector e.g., if working with 5D tools. By default the vector is defined along the Z-axis which works for Aurora 5D tools.

Returns
Returns the angle in degrees.

Definition at line 48 of file mitkStaticIGTHelperFunctions.cpp.


The documentation for this class was generated from the following files: