Constructor
new WindowLut(modalityLut, isSigned, isDiscrete)
Construct a window LUT object, VOI LUT is set with the 'setVoiLut' method.
Parameters:
Name | Type | Description |
---|---|---|
modalityLut | ModalityLut | The associated rescale LUT. |
isSigned | boolean | Flag to know if the data is signed or not. |
isDiscrete | boolean | Flag to know if the input data is discrete. |
- Source
Classes
Methods
getModalityLut() → {ModalityLut}
Get the modality LUT.
- Source
Returns:
The modality LUT.
- Type:
- ModalityLut
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 for discrete data or full range for non discrete. |
- Source
Returns:
The integer value (default [0,255]) of the LUT at the given offset.
- Type:
- number
getVoiLut() → {VoiLut}
Get the VOI LUT.
- Source
Returns:
The VOI LUT.
- Type:
- VoiLut
setVoiLut(lut)
Set the VOI LUT.
Parameters:
Name | Type | Description |
---|---|---|
lut | VoiLut | The VOI LUT. |
- Source