Matrices
Canonical transformation matrices for standard color spaces.
Provides the fundamental transformation matrices between linear RGB and
CIE XYZ color spaces for various industry standards.
Constants
public const array SRGB_LINEAR_TO_DISPLAY_P3_LINEAR
linear sRGB to linear Display P3 transformation matrix.
public const array DISPLAY_P3_LINEAR_TO_SRGB_LINEAR
linear Display P3 to linear sRGB transformation matrix.
public const array REC2020_TO_XYZ_D65
linear Rec.2020 to XYZ D65 transformation matrix.
public const array XYZ_D65_TO_REC2020
XYZ D65 to linear Rec.2020 transformation matrix.
public const array A98_RGB_TO_XYZ_D65
linear Adobe RGB (1998) to XYZ D65 transformation matrix.
public const array XYZ_D65_TO_A98_RGB
XYZ D65 to linear Adobe RGB (1998) transformation matrix.
public const array PROPHOTO_RGB_TO_XYZ_D50
linear ProPhoto RGB to XYZ D50 transformation matrix.
public const array XYZ_D50_TO_PROPHOTO_RGB
XYZ D50 to linear ProPhoto RGB transformation matrix.
Methods
verifyInverse
static
public static function verifyInverse(array $m, array $mInv, float $tolerance): bool
Verify that a matrix and its inverse form an identity when multiplied.
Parameters
| Name | Type | Default |
|---|---|---|
$m |
array | - |
$mInv |
array | - |
$tolerance |
float | 1.0e-6 |