colour.models.cctf_encoding_ProPhotoRGB#

colour.models.cctf_encoding_ProPhotoRGB(X, bit_depth=8, out_int=False)#

Define the ProPhoto RGB encoding colour component transfer function (Encoding CCTF).

Parameters:
  • X – Linear data \(X_{ROMM}\).

  • bit_depth – Bit-depth used for conversion.

  • out_int – Whether to return value as int code value or float equivalent of a code value at a given bit-depth.

Returns:

Non-linear data \(X'_{ROMM}\).

Return type:

numpy.ndarray

Notes

Domain *

Scale - Reference

Scale - 1

X

[0, 1]

[0, 1]

Range *

Scale - Reference

Scale - 1

X_p

[0, 1]

[0, 1]

* This definition has an output int switch, thus the domain-range scale information is only given for the floating point mode.

References

[ANSI03], [SWG00]

Examples

>>> cctf_encoding_ROMMRGB(0.18)  
0.3857114...
>>> cctf_encoding_ROMMRGB(0.18, out_int=True)
98