colorspaces/matrix_utils library
Matrix utilities for computing gamut-specific HCT solver constants.
These are used to derive the composite matrices that the HCT solver needs for any RGB color space, by combining the RGB→XYZ matrix with the CAM16 chromatic adaptation matrices.
Constants
Functions
-
computeLinrgbFromScaledDiscount(
List< List< rgbToXyz) → List<double> >List< double> > - Computes the inverse: "linear RGB from scaled discount".
-
computeScaledDiscountFromLinrgb(
List< List< rgbToXyz) → List<double> >List< double> > - Computes the "scaled discount from linear RGB" matrix used by the HCT solver.
-
invert3x3(
List< List< m) → List<double> >List< double> > - Inverts a 3x3 matrix.
-
multiply3x3(
List< List< a, List<double> >List< b) → List<double> >List< double> > - Multiplies two 3x3 matrices represented as List<List<double>>.