DWVv0.37.0

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, ): WindowLut

Construct 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

getModalityLut(): ModalityLut

Get the modality LUT.

Returns

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.