colour.cctf_decoding#

colour.cctf_decoding(value: ArrayLike, function: LiteralCCTFDecoding | str = 'sRGB', **kwargs: Any) NDArrayFloat[source]#

Apply the specified decoding colour component transfer function (Decoding CCTF).

Parameters:
Return type:

NDArrayFloat

Warning

For ITU-R BT.2100, only the electro-optical transfer functions (EOTFs) are exposed by this attribute. See colour.OETF_INVERSES for the inverse opto-electronic transfer functions (OETFs).

Returns:

Linear RGB value.

Return type:

numpy.ndarray

Parameters:

Examples

>>> cctf_decoding(0.391006842619746, function="PLog", log_reference=400)
...
0.1...
>>> cctf_decoding(0.182011532850008, function="ST 2084", L_p=1000)
...
0.1...
>>> cctf_decoding(
...     0.461356129500442, function="ITU-R BT.1886"
... )
0.1...