#include <SignMathUtils.h>
This class contains a couple of mathematical functions that are used throughout The SIGN.
Static Public Member Functions | |
| static vtkMatrix4x4 * | RegisterFiducialSets (SignFiducialCollection *set1, SignFiducialCollection *set2) |
| Performs SVD-based registration for two fiducial sets. | |
| static float | abs (float) |
| Computes the absolute value of a number. | |
| static float | dist (int a[2], int b[2]) |
| Computes the distance between two points in 2 dimensions. | |
| static float | dist (float a[3], float b[3]) |
| Computes the distance between two points in 3 dimensions. | |
| static void | Normalize (float *v) |
| Normalizes a vector. | |
| static void | MultiplyMatrix (const double **A, const double **B, unsigned int rowA, unsigned int colA, unsigned int rowB, unsigned int colB, double **C) |
| static double ** | AllocateMatrix (int r, int c) |
| static int | ComputeRasToIjkFromCorners (double *ftl, double *ftr, double *fbr, double *ltl, double zoffset, vtkImageData *image, vtkMatrix4x4 *posMat) |
| Computes the RAS to IJK matrix based on the corners of the image. The strategy here is as follows. We create a 4x4 matrix called Ras, which has in its columns the homogeneous RAS coordinates of four corners of the data volume. We then create another matrix called Ijk, which has in its columns the IJK coordinates of those same four corners. We then solve for RasToIjk in the equation RasToIjk*Ras=Ijk. | |
| static void | ComputeRasToIjkFromScanOrder (const char *order, vtkImageData *image, vtkMatrix4x4 *posMat) |
| Computes the RAS to IJK matrix based on the scan order. | |
|
|
Computes the absolute value of a number.
|
|
||||||||||||
|
|
|
||||||||||||||||||||||||||||||||
|
Computes the RAS to IJK matrix based on the corners of the image. The strategy here is as follows. We create a 4x4 matrix called Ras, which has in its columns the homogeneous RAS coordinates of four corners of the data volume. We then create another matrix called Ijk, which has in its columns the IJK coordinates of those same four corners. We then solve for RasToIjk in the equation RasToIjk*Ras=Ijk.
|
|
||||||||||||||||
|
Computes the RAS to IJK matrix based on the scan order.
|
|
||||||||||||
|
Computes the distance between two points in 3 dimensions.
|
|
||||||||||||
|
Computes the distance between two points in 2 dimensions.
|
|
||||||||||||||||||||||||||||||||
|
|
|
|
Normalizes a vector.
|
|
||||||||||||
|
Performs SVD-based registration for two fiducial sets.
|
1.4.6