VoiLut

VOI (Values of Interest) LUT class: apply window centre and width using a VOI LUT function.

Constructor

new VoiLut(wl, voiLutFunctionNameopt)

Parameters:
NameTypeAttributesDescription
wlWindowLevel

The window center and width.

voiLutFunctionNamestring<optional>

The name of the VOI LUT function, defaults to 'LINEAR'.

Classes

VoiLut

Methods

apply(value) → {number}

Apply the window level on an input value.

Parameters:
NameTypeDescription
valuenumber

The value to rescale as an integer.

Returns:

The leveled value, in the [0,255] range.

Type: 
number

getWindowLevel() → {WindowLevel}

Get the window and level.

Returns:

The window center and width.

Type: 
WindowLevel

setSignedOffset(offset)

Set the signed offset.

Parameters:
NameTypeDescription
offsetnumber

The signed data offset, typically: slope * ( size / 2).