colour.models.eotf_DICOMGSDF#

colour.models.eotf_DICOMGSDF(J: FloatingOrArrayLike | IntegerOrArrayLike, in_int: bool = False, constants: Structure = CONSTANTS_DICOMGSDF) FloatingOrNDArray[source]#

Define the DICOM - Grayscale Standard Display Function electro-optical transfer function (EOTF).

Parameters:
  • J (FloatingOrArrayLike | IntegerOrArrayLike) – 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 given bit depth.

  • constants (Structure) – DICOM - Grayscale Standard Display Function constants.

Returns:

Corresponding luminance \(L\).

Return type:

numpy.floating or numpy.ndarray

Notes

Domain

Scale - Reference

Scale - 1

J

[0, 1]

[0, 1]

Range

Scale - Reference

Scale - 1

L

[0, 1]

[0, 1]

References

[NationalEMAssociation04]

Examples

>>> eotf_DICOMGSDF(0.500486263438448)  
130.0628647...
>>> eotf_DICOMGSDF(512, in_int=True)  
130.0652840...