public class Check_Trajectory_Consistency
extends java.lang.Object
implements ij.plugin.PlugIn
Constructor and Description |
---|
Check_Trajectory_Consistency() |
Modifier and Type | Method and Description |
---|---|
void |
applyRotation(java.util.ArrayList<PointND> points,
SimpleMatrix rotation)
Method to apply a rotation matrix to a set of points.
|
java.util.ArrayList<PointND> |
computeCenteredSourcePositions(Trajectory traj,
PointND isoCenter)
Method to move points around the iso center, i.e.
|
double |
computeMeanDeviation(java.util.ArrayList<PointND> pointsA,
java.util.ArrayList<PointND> pointsB) |
java.util.ArrayList<PointND> |
computePrincipalPoints(Trajectory traj)
Method to generate all the principal points of the detectors in pixels.
|
SimpleMatrix |
estimateRotationMatrix(java.util.ArrayList<PointND> centeredPoints)
estimates the rotation that needs to be applied to move the first source position to the vector
( normL2(firstSourcePosition), 0, 0) Using this transformation the trajectory can be standardized. |
static void |
main(java.lang.String[] args) |
void |
printSourcePositions(java.lang.String file,
PointND isocenter,
double deviation,
java.util.ArrayList<PointND> points,
java.util.ArrayList<PointND> principalPoints)
Prints the important features of the trajectory
|
void |
run(java.lang.String arg) |
public void run(java.lang.String arg)
run
in interface ij.plugin.PlugIn
public double computeMeanDeviation(java.util.ArrayList<PointND> pointsA, java.util.ArrayList<PointND> pointsB)
public void printSourcePositions(java.lang.String file, PointND isocenter, double deviation, java.util.ArrayList<PointND> points, java.util.ArrayList<PointND> principalPoints)
isocenter
- the iso centerdeviation
- the mean deviationpoints
- the actual source positionsprincipalPoints
- public java.util.ArrayList<PointND> computePrincipalPoints(Trajectory traj)
traj
- the trajectoryisoCenter
- the iso centerpublic java.util.ArrayList<PointND> computeCenteredSourcePositions(Trajectory traj, PointND isoCenter)
traj
- the trajectoryisoCenter
- the iso centerpublic SimpleMatrix estimateRotationMatrix(java.util.ArrayList<PointND> centeredPoints)
centeredPoints
- public void applyRotation(java.util.ArrayList<PointND> points, SimpleMatrix rotation)
points
- rotation
- public static void main(java.lang.String[] args)