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:
value (ArrayLike) – Non-linear RGB value.
function (LiteralCCTFDecoding | str) – Decoding colour component transfer function.
kwargs (Any) – Keywords arguments for the relevant decoding CCTF of the
colour.CCTF_DECODINGSattribute collection.
- Return type:
Warning
For ITU-R BT.2100, only the electro-optical transfer functions (EOTFs) are exposed by this attribute. See
colour.OETF_INVERSESfor the inverse opto-electronic transfer functions (OETFs).- Returns:
Linear RGB value.
- Return type:
- Parameters:
value (ArrayLike)
function (LiteralCCTFDecoding | str)
kwargs (Any)
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...