colour.models.cctf_decoding_ROMMRGB#

colour.models.cctf_decoding_ROMMRGB(X_p: Annotated[_Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | bytes | str | _NestedSequence[complex | bytes | str], 1], bit_depth: int = 8, in_int: bool = False) Annotated[ndarray[tuple[Any, ...], dtype[float16 | float32 | float64]], 1][source]#

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

Parameters:
  • X_p (Annotated[_Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | bytes | str | _NestedSequence[complex | bytes | str], 1]) – Non-linear encoded data \(X'_{ROMM}\).

  • bit_depth (int) – Bit-depth used for conversion.

  • in_int (bool) – Whether to treat the input value as integer code value or floating point equivalent of a code value at a specified bit-depth.

Returns:

Linear data \(X_{ROMM}\).

Return type:

numpy.ndarray

Notes

Domain

Scale - Reference

Scale - 1

X_p

1

1

Range

Scale - Reference

Scale - 1

X

1

1

  • This definition has an input int switch, thus the domain-range scale information is only specified for the floating point mode.

References

[ANSI03], [SWG00]

Examples

>>> cctf_decoding_ROMMRGB(0.385711424751138)
np.float64(0.1...)
>>> cctf_decoding_ROMMRGB(98, in_int=True)
np.float64(0.1...)