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

cat16 → const List<List<double>>
The CAM16 M16 matrix (Hunt-Pointer-Estevez adapted for CAM16).

Functions

computeLinrgbFromScaledDiscount(List<List<double>> rgbToXyz) → List<List<double>>
Computes the inverse: "linear RGB from scaled discount".
computeScaledDiscountFromLinrgb(List<List<double>> rgbToXyz) → List<List<double>>
Computes the "scaled discount from linear RGB" matrix used by the HCT solver.
invert3x3(List<List<double>> m) → List<List<double>>
Inverts a 3x3 matrix.
multiply3x3(List<List<double>> a, List<List<double>> b) → List<List<double>>
Multiplies two 3x3 matrices represented as List<List<double>>.