NifTK
16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
|
A list of utility methods for working with MIT points and stuff. More...
Go to the source code of this file.
Namespaces | |
niftk | |
Functions | |
double | niftk::CalculateStepSize (double *spacing) |
Given a double[3] of x,y,z voxel spacing, calculates a step size along a ray, as 1/3 of the smallest voxel dimension. More... | |
bool | niftk::AreDifferent (const mitk::Point3D &a, const mitk::Point3D &b) |
Returns true if a and b are different (up to a given tolerance, currently 0.01), and false otherwise. More... | |
double | niftk::GetSquaredDistanceBetweenPoints (const mitk::Point3D &a, const mitk::Point3D &b) |
Returns the squared Euclidean distance between a and b. More... | |
double | niftk::GetRMSErrorBetweenPoints (const mitk::PointSet &fixed, const mitk::PointSet &moving, const CoordinateAxesData *const transform=NULL) |
Gets the RMS error between fixed point set and a moving point set, with optional transform specified. More... | |
void | niftk::GetDifference (const mitk::Point3D &a, const mitk::Point3D &b, mitk::Point3D &output) |
Returns as output the vector difference of a-b. More... | |
double | niftk::Length (mitk::Point3D &vector) |
Given a vector, will calculate the length. More... | |
void | niftk::Normalise (mitk::Point3D &vector) |
Given a vector, will normalise it to unit length. More... | |
void | niftk::CopyValues (const mitk::Point3D &a, mitk::Point3D &b) |
Copies a into b. More... | |
void | niftk::CrossProduct (const mitk::Point3D &a, const mitk::Point3D &b, mitk::Point3D &c) |
Computes c = a x b, and will normalise a and b to unit length first. More... | |
void | niftk::ComputeNormalFromPoints (const mitk::Point3D &a, const mitk::Point3D &b, const mitk::Point3D &c, mitk::Point3D &output) |
Computes the normal by calculating cross product of (a-b) and (c-b). More... | |
double | niftk::FindLargestDistanceBetweenTwoPoints (const mitk::PointSet &input) |
Computes the largest Euclidean Distance between any two points. More... | |
int | niftk::CopyPointSets (const mitk::PointSet &input, mitk::PointSet &output) |
Copies input to output, i.e. the output is erased, and re-populated. More... | |
void | niftk::ScalePointSets (const mitk::PointSet &input, mitk::PointSet &output, double scaleFactor) |
Copies input to output, i.e. the output is erased, and re-populated, multiplying by a scale factor. More... | |
int | niftk::FilterMatchingPoints (const mitk::PointSet &fixedPointsIn, const mitk::PointSet &movingPointsIn, mitk::PointSet &fixedPointsOut, mitk::PointSet &movingPointsOut) |
Takes fixed and moving points, and scans for matching ID's and returns 2 point sets with ordered and corresponding points. More... | |
int | niftk::RemoveNaNPoints (const mitk::PointSet &pointsIn, mitk::PointSet &pointsOut) |
Takes a point set and scans for matching NaN's and returns a point set with the offending points removed. More... | |
bool | niftk::CheckForNaNPoint (const mitk::PointSet::PointType &point) |
Checks if the point contains a NaN value. More... | |
void | niftk::TransformPointByVtkMatrix (const vtkMatrix4x4 *matrix, const bool &isNormal, mitk::Point3D &pointOrNormal) |
Simple method to multiply a mitk::Point3D by a vtkMatrix, if the matrix is not NULL, and otherwise if matrix is NULL, will simply leave the point un-altered. More... | |
void | niftk::TransformPointsByVtkMatrix (const mitk::PointSet &input, const vtkMatrix4x4 &matrix, mitk::PointSet &output) |
Multiplies one point set by a matrix. More... | |
mitk::Point3D | niftk::ComputeCentroid (const mitk::PointSet &input) |
Computes the mean/centroid of an mitk::PointSet. More... | |
A list of utility methods for working with MIT points and stuff.