WindowLut

Window LUT class: combines a modality LUT and a VOI LUT.

Constructor

new WindowLut(modalityLut, isSigned, isDiscrete)

Construct a window LUT object, VOI LUT is set with the 'setVoiLut' method.

Parameters:
NameTypeDescription
modalityLutModalityLut

The associated rescale LUT.

isSignedboolean

Flag to know if the data is signed or not.

isDiscreteboolean

Flag to know if the input data is discrete.

Classes

WindowLut

Methods

getModalityLut() → {ModalityLut}

Get the modality LUT.

Returns:

The modality LUT.

Type: 
ModalityLut

getValue(offset) → {number}

Get the value of the LUT at the given offset.

Parameters:
NameTypeDescription
offsetnumber

The input offset in [0,2^bitsStored] range for discrete data or full range for non discrete.

Returns:

The integer value (default [0,255]) of the LUT at the given offset.

Type: 
number

getVoiLut() → {VoiLut}

Get the VOI LUT.

Returns:

The VOI LUT.

Type: 
VoiLut

setVoiLut(lut)

Set the VOI LUT.

Parameters:
NameTypeDescription
lutVoiLut

The VOI LUT.