Medical Imaging Interaction Toolkit
2023.12.00
Medical Imaging Interaction Toolkit
|
Functions | |
MITKIGTBASE_EXPORT double | GetAngleBetweenTwoQuaterions (mitk::Quaternion a, mitk::Quaternion b, itk::Vector< double, 3 > rotationVector) |
MITKIGTBASE_EXPORT double | GetAngleBetweenTwoQuaterions (mitk::Quaternion a, mitk::Quaternion b) |
MITKIGTBASE_EXPORT itk::Matrix< double, 3, 3 > | ConvertEulerAnglesToRotationMatrix (double alpha, double beta, double gamma) |
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 same size and the points must correspond to each other. More... | |
MITKIGTBASE_EXPORT double mitk::StaticIGTHelperFunctions::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 same size and the points must correspond to each other.
imageFiducials | |
realWorldFiducials | |
transform | This transform is applied to the image fiducials before the FRE calculation if it is given. |
MITKIGTBASE_EXPORT itk::Matrix<double,3,3> mitk::StaticIGTHelperFunctions::ConvertEulerAnglesToRotationMatrix | ( | double | alpha, |
double | beta, | ||
double | gamma | ||
) |
Converts euler angles (in degrees) to a rotation matrix.
MITKIGTBASE_EXPORT double mitk::StaticIGTHelperFunctions::GetAngleBetweenTwoQuaterions | ( | mitk::Quaternion | a, |
mitk::Quaternion | b | ||
) |
Computes difference between two quaternions in degree, which is the minimum rotation angle between these two quaternions. The used formula is described here: https://fgiesen.wordpress.com/2013/01/07/small-note-on-quaternion-distance-metrics/
MITKIGTBASE_EXPORT double mitk::StaticIGTHelperFunctions::GetAngleBetweenTwoQuaterions | ( | mitk::Quaternion | a, |
mitk::Quaternion | b, | ||
itk::Vector< double, 3 > | rotationVector | ||
) |
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 define this vector e.g., if working with 5D tools. For NDI Aurora 5D tools you need to defined this vector along the Z-axis.