VoiLutSigmoidFunction

VOI LUT sigmoid function.

y = (ymax − ymin) / (1 + exp(−4 * (x − c) / w)) + ymin

Ref: https://dicom.nema.org/medical/dicom/2022a/output/chtml/part03/sect_C.11.2.html#sect_C.11.2.1.2.

Constructor

new VoiLutSigmoidFunction(center, width)

Parameters:
NameTypeDescription
centernumber

The window level center.

widthnumber

The window level width.

Classes

VoiLutSigmoidFunction

Methods

getY(x) → {number}

Get the value of the function at a given number.

Parameters:
NameTypeDescription
xnumber

The input value.

Returns:

The value of the function at x.

Type: 
number