Skip to main content

Function: sampleVOILUT()

sampleVOILUT(voiLUT, value, voiRange?): number

The output of a VOI LUT Sequence for one input value, from 0 to 1.

The curve is laid over voiRange, or over the own domain of the LUT when no range is given. Every path that shows a sequence uses this function, so the CPU renderer, the GPU transfer function and the tools that map a display intensity all see one curve.

Parameters​

• voiLUT: RenderableVOILUT

a VOI LUT Sequence item

• value: number

a value in the output space of the modality LUT

• voiRange?: VOIRange

the input range to lay the curve over

Returns​

number

Defined in​

packages/core/src/utilities/createVOILUTSequenceTransferFunction.ts:106