Class AlgorithmRegOAR35D.MatrixListItem
- java.lang.Object
- 
- gov.nih.mipav.model.algorithms.registration.AlgorithmRegOAR35D.MatrixListItem
 
- 
- All Implemented Interfaces:
- java.lang.Comparable<AlgorithmRegOAR35D.MatrixListItem>
 - Enclosing class:
- AlgorithmRegOAR35D
 
 class AlgorithmRegOAR35D.MatrixListItem extends java.lang.Object implements java.lang.Comparable<AlgorithmRegOAR35D.MatrixListItem> Helper class to make it easy to store the necessary information about a minimum. Stores the "point", or vector at which the minimum was reached; the "cost", or value of the cost function at that minimum; and the matrix, which was the true input into the cost function and represents the transformation that gives the minimum cost of differences between the images. Implements Comparable, so that a list of MatrixListItems can be sorted using Java's sort.
- 
- 
Field SummaryFields Modifier and Type Field Description protected doublecostCost of function at this minimum.protected double[]initialRotations, translations, scales, and skews that make up transformation.protected TransMatrixdmatrixMatrix that gives best transformation.
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedMatrixListItem(double _cost, TransMatrixd _matrix, double[] _initial)Creates new minimum object, setting the data and copying the point array explicitly.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(AlgorithmRegOAR35D.MatrixListItem o)Necessary to implement so that list may be sorted.java.lang.StringtoAbridgedString()Creates string of this object with just first 6DOF and cost.java.lang.StringtoString()Creates readable string of this object, including cost, matrix, and point with its meanings.
 
- 
- 
- 
Field Detail- 
costprotected double cost Cost of function at this minimum.
 - 
initialprotected double[] initial Rotations, translations, scales, and skews that make up transformation.
 - 
matrixprotected TransMatrixd matrix Matrix that gives best transformation.
 
- 
 - 
Constructor Detail- 
MatrixListItemprotected MatrixListItem(double _cost, TransMatrixd _matrix, double[] _initial)Creates new minimum object, setting the data and copying the point array explicitly.- Parameters:
- _cost- Cost of this minimum.
- _matrix- Matrix that gives best transformation.
- _initial- Rotations, translations, scales, and skews that make up transformation.
 
 
- 
 - 
Method Detail- 
compareTopublic int compareTo(AlgorithmRegOAR35D.MatrixListItem o) Necessary to implement so that list may be sorted. Returns -1 if this cost is less than the parameter's cost; 1 if this cost is greater than the parameter's cost; and 0 if they are equal.- Specified by:
- compareToin interface- java.lang.Comparable<AlgorithmRegOAR35D.MatrixListItem>
- Parameters:
- o- MatrixListItem to compare to.
- Returns:
- -1 if this is less than, 1 if greater than, 0 if equal.
 
 - 
toAbridgedStringpublic java.lang.String toAbridgedString() Creates string of this object with just first 6DOF and cost.- Returns:
- Readable string representation of this object.
 
 - 
toStringpublic java.lang.String toString() Creates readable string of this object, including cost, matrix, and point with its meanings.- Overrides:
- toStringin class- java.lang.Object
- Returns:
- Readable string representation of this object.
 
 
- 
 
-