public class ColorDeconvMatrix3x3
extends Object
Simple class for representing - and inverting a 3x3 matrix.
-
Constructor Summary
Constructors
Constructor for a 3x3 matrix.
-
Method Summary
double
Calculate the determinant of the matrix.
double[][]
Calculate the 3x3 matrix inverse.
-
Constructor Details
-
ColorDeconvMatrix3x3
Constructor for a 3x3 matrix.
- Parameters:
M -
- Throws:
IllegalArgumentException - if the matrix is not 3x3
-
Method Details
-
determinant
public double determinant()
Calculate the determinant of the matrix.
- Returns:
-
inverse
public double[][] inverse()
Calculate the 3x3 matrix inverse.
- Returns:
-