colour.models.oetf_DICOMGSDF

colour.models.oetf_DICOMGSDF(L, out_int=False)[source]

Defines the DICOM - Grayscale Standard Display Function opto-electronic transfer function (OETF / OECF).

Parameters:
  • L (numeric or array_like) – Luminance \(L\).
  • out_int (bool, optional) – Whether to return value as integer code value or float equivalent of a code value at a given bit depth.
Returns:

Just-Noticeable Difference (JND) Index, \(j\).

Return type:

numeric or ndarray

Notes

Domain Scale - Reference Scale - 1
L [0, 1] [0, 1]
Range Scale - Reference Scale - 1
J [0, 1] [0, 1]

References

[NationalEMAssociation04]

Examples

>>> oetf_DICOMGSDF(130.0662)  # doctest: +ELLIPSIS
0.5004862...
>>> oetf_DICOMGSDF(130.0662, out_int=True)
512