colour.models.rgb.transfer_functions.dicom_gsdf Module

DICOM - Grayscale Standard Display Function

Defines the DICOM - Grayscale Standard Display Function opto-electrical transfer function (OETF / OECF) and electro-optical transfer function (EOTF / EOCF):

The Grayscale Standard Display Function is defined for the Luminance Range from \(0.05\) to \(4000 cd/m^2\). The minimum Luminance corresponds to the lowest practically useful Luminance of cathode-ray-tube (CRT) monitors and the maximum exceeds the unattenuated Luminance of very bright light-boxes used for interpreting X-Ray mammography. The Grayscale Standard Display Function explicitly includes the effects of the diffused ambient Illuminance.

References

[1]National Electrical Manufacturers Association. (2004). Digital Imaging and Communications in Medicine ( DICOM ) Part 14 : Grayscale Standard Display Function. Medicine, 10(S1), 3–4. doi:10.1007/BF03168637
colour.models.rgb.transfer_functions.dicom_gsdf.DICOMGSDF_CONSTANTS = {'A': 71.498068, 'C': 41.912053, 'B': 94.593053, 'E': 0.28175407, 'D': 9.8247004, 'G': -0.18014349, 'F': -1.1878455, 'I': -0.017046845, 'H': 0.14710899, 'a': -1.3011877, 'c': 0.080242636, 'b': -0.025840191, 'e': 0.13646699, 'd': -0.10320229, 'g': -0.025468404, 'f': 0.02874562, 'h': -0.0031978977, 'k': 0.00012992634, 'm': 0.0013635334}

DICOM Grayscale Standard Display Function constants.

DICOMGSDF_CONSTANTS : Structure

colour.models.rgb.transfer_functions.dicom_gsdf.oetf_DICOMGSDF(L)[source]

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

Parameters:L (numeric or array_like) – Luminance \(L\).
Returns:Just-Noticeable Difference (JND) Index, \(j\) in domain 1 to 1023.
Return type:numeric or ndarray

Examples

>>> oetf_DICOMGSDF(130.065284012159790)  
511.9964806...
colour.models.rgb.transfer_functions.dicom_gsdf.eotf_DICOMGSDF(J)[source]

Defines the DICOM - Grayscale Standard Display Function electro-optical transfer function (EOTF / EOCF).

Parameters:J (numeric or array_like) – Just-Noticeable Difference (JND) Index, \(j\) in range 1 to 1023.
Returns:Corresponding luminance \(L\).
Return type:numeric or ndarray

Examples

>>> eotf_DICOMGSDF(512)  
130.0652840...