WindowLut
Source: windowLut.js:9
Window LUT class: combines a modality LUT and a VOI LUT.
Constructor
new WindowLut(
modalityLut: ModalityLut,
isSigned: boolean,
isDiscrete: boolean,
): WindowLutConstruct a window LUT object, VOI LUT is set with the 'setVoiLut' method.
Parameters
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.
Instance Methods
getVoiLut(): VoiLut
Get the VOI LUT.
Returns
VoiLut— The VOI LUT.
getModalityLut(): ModalityLut
Get the modality LUT.
Returns
ModalityLut— The modality LUT.
setVoiLut(lut: VoiLut)
Set the VOI LUT.
Parameters
lut(VoiLut) — The VOI LUT.
getValue(offset: number): number
Get the value of the LUT at the given offset.
Parameters
offset(number) — The input offset in [0,2^bitsStored] range for discrete data or full range for non discrete.
Returns
number— The integer value (default [0,255]) of the LUT at the given offset.