colour.XYZ_to_IPT

colour.XYZ_to_IPT(XYZ)[source]

Converts from CIE XYZ tristimulus values to IPT colourspace.

Parameters

XYZ (array_like) – CIE XYZ tristimulus values.

Returns

IPT colourspace array.

Return type

ndarray

Notes

Domain

Scale - Reference

Scale - 1

XYZ

[0, 1]

[0, 1]

Range

Scale - Reference

Scale - 1

IPT

I : [0, 1]

P : [-1, 1]

T : [-1, 1]

I : [0, 1]

P : [-1, 1]

T : [-1, 1]

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

References

[Fai13d]

Examples

>>> XYZ = np.array([0.20654008, 0.12197225, 0.05136952])
>>> XYZ_to_IPT(XYZ)  
array([ 0.3842619...,  0.3848730...,  0.1888683...])