Function: toWindowLevel()
toWindowLevel(
low,high):object
Given a low and high window level, return the window width and window center Formulas from note 4 in https://dicom.nema.org/medical/dicom/current/output/html/part03.html#sect_C.11.2.1.2.1 extended to allow for low/high swapping
Parameters
• low: number
The low window level.
• high: number
The high window level.
Returns
object
a JavaScript object with two properties: windowWidth and windowCenter.
windowCenter
windowCenter:
number
windowWidth
windowWidth:
number