Constructor
new WindowLut(rescaleLut, isSigned)
Parameters:
Name | Type | Description |
---|---|---|
rescaleLut | RescaleLut | The associated rescale LUT. |
isSigned | boolean | Flag to know if the data is signed or not. |
- Source
Classes
Methods
getLength() → {number}
Get the length of the LUT array.
- Source
Returns:
The length of the LUT array.
- Type:
- number
getRescaleLut() → {RescaleLut}
Get the rescale lut.
- Source
Returns:
The rescale lut.
- Type:
- RescaleLut
getValue(offset) → {number}
Get the value of the LUT at the given offset.
Parameters:
Name | Type | Description |
---|---|---|
offset | number | The input offset in [0,2^bitsStored] range. |
- Source
Returns:
The integer value (default [0,255]) of the LUT at the given offset.
- Type:
- number
getWindowLevel() → {WindowCenterAndWidth}
Get the window / level.
- Source
Returns:
The window / level.
- Type:
- WindowCenterAndWidth
isReady() → {boolean}
Is the lut ready to use or not? If not, the user must call 'update'.
- Source
Returns:
True if the lut is ready to use.
- Type:
- boolean
isSigned() → {boolean}
Get the signed flag.
- Source
Returns:
The signed flag.
- Type:
- boolean
setWindowLevel(wl)
Set the window center and width.
Parameters:
Name | Type | Description |
---|---|---|
wl | WindowCenterAndWidth | The window level. |
- Source
update()
Update the lut if needed..
- Source