colour.XYZ_to_IgPgTg

colour.XYZ_to_IgPgTg(XYZ)[source]

Converts from CIE XYZ tristimulus values to \(I_GP_GT_G\) colourspace.

Parameters

XYZ (array_like) – CIE XYZ tristimulus values.

Returns

\(I_GP_GT_G\) colourspace array.

Return type

ndarray

Notes

Domain

Scale - Reference

Scale - 1

XYZ

[0, 1]

[0, 1]

Range

Scale - Reference

Scale - 1

IgPgTg

IG : [0, 1]

PG : [-1, 1]

TG : [-1, 1]

IG : [0, 1]

PG : [-1, 1]

TG : [-1, 1]

  • Input CIE XYZ tristimulus values must be adapted to CIE Standard Illuminant D Series D65.

References

[HF20]

Examples

>>> XYZ = np.array([0.20654008, 0.12197225, 0.05136952])
>>> XYZ_to_IgPgTg(XYZ)  
array([ 0.4242125...,  0.1863249...,  0.1068922...])