colour.models.eotf_DICOMGSDF¶
- colour.models.eotf_DICOMGSDF(J: Union[FloatingOrArrayLike, IntegerOrArrayLike], in_int: Boolean = False, constants: Structure = CONSTANTS_DICOMGSDF) FloatingOrNDArray [source]¶
Define the DICOM - Grayscale Standard Display Function electro-optical transfer function (EOTF).
- Parameters
J (Union[FloatingOrArrayLike, IntegerOrArrayLike]) – Just-Noticeable Difference (JND) Index, \(j\).
in_int (Boolean) – Whether to treat the input value as integer code value or float equivalent of a code value at a given bit depth.
constants (Structure) – DICOM - Grayscale Standard Display Function constants.
- Returns
Corresponding luminance \(L\).
- Return type
Notes
Domain
Scale - Reference
Scale - 1
J
[0, 1]
[0, 1]
Range
Scale - Reference
Scale - 1
L
[0, 1]
[0, 1]
References
Examples
>>> eotf_DICOMGSDF(0.500486263438448) 130.0628647... >>> eotf_DICOMGSDF(512, in_int=True) 130.0652840...