colour.models.eotf_DICOMGSDF#
- colour.models.eotf_DICOMGSDF(J: Annotated[_Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | bytes | str | _NestedSequence[complex | bytes | str], 1], in_int: bool = False, constants: Structure | None = None) Annotated[ndarray[tuple[Any, ...], dtype[float16 | float32 | float64]], 1][source]#
Apply the DICOM - Grayscale Standard Display Function electro-optical transfer function (EOTF).
- Parameters:
J (Annotated[_Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | bytes | str | _NestedSequence[complex | bytes | str], 1]) – Just-Noticeable Difference (JND) Index, \(j\).
in_int (bool) – Whether to treat the input value as integer code value or float equivalent of a code value at a specified bit-depth.
constants (Structure | None) – DICOM - Grayscale Standard Display Function constants.
- Returns:
Luminance \(L\).
- Return type:
Notes
Domain
Scale - Reference
Scale - 1
J1
1
Range
Scale - Reference
Scale - 1
L1
1
References
Examples
>>> eotf_DICOMGSDF(0.500486263438448) 130.0628647... >>> eotf_DICOMGSDF(512, in_int=True) 130.0652840...