Constructor
new VoiLut(wl, voiLutFunctionNameopt)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
wl | WindowLevel | The window center and width. | |
voiLutFunctionName | string | <optional> | The name of the VOI LUT function, defaults to 'LINEAR'. |
- Source
Classes
Methods
apply(value) → {number}
Apply the window level on an input value.
Parameters:
Name | Type | Description |
---|---|---|
value | number | The value to rescale as an integer. |
- Source
Returns:
The leveled value, in the [0,255] range.
- Type:
- number
getWindowLevel() → {WindowLevel}
Get the window and level.
- Source
Returns:
The window center and width.
- Type:
- WindowLevel
setSignedOffset(offset)
Set the signed offset.
Parameters:
Name | Type | Description |
---|---|---|
offset | number | The signed data offset, typically: slope * ( size / 2). |
- Source