colour.models.cctf_encoding_ROMMRGB#
- colour.models.cctf_encoding_ROMMRGB(X: Annotated[_Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | bytes | str | _NestedSequence[complex | bytes | str], 1], bit_depth: int = 8, out_int: bool = False) Annotated[TypeAliasForwardRef('NDArrayReal'), 1][source]#
Apply the ROMM RGB encoding colour component transfer function (Encoding CCTF).
- Parameters:
X (Annotated[_Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | bytes | str | _NestedSequence[complex | bytes | str], 1]) – Linear data \(X_{ROMM}\).
bit_depth (int) – Bit-depth used for conversion.
out_int (bool) – Whether to return value as integer code value or floating point equivalent of a code value at a specified bit-depth.
- Returns:
Non-linear encoded data \(X'_{ROMM}\).
- Return type:
Notes
Domain
Scale - Reference
Scale - 1
X1
1
Range
Scale - Reference
Scale - 1
X_p1
1
This definition has an output int switch, thus the domain-range
scale information is only specified for the floating point mode.
References
Examples
>>> cctf_encoding_ROMMRGB(0.18) 0.3857114... >>> cctf_encoding_ROMMRGB(0.18, out_int=True) 98