Skip to main content

Function: createVOILUTSampler()

createVOILUTSampler(voiLUT, voiRange?): (value) => number

A function that gives the output of a VOI LUT Sequence, from 0 to 1, for each input value. The scale of the entries and the domain are calculated one time. A path that maps many values, such as the display LUT of the CPU renderer, must use this and not sampleVOILUT: a scan of the entries for each value of a LUT of 65536 entries is very slow.

Parameters​

• voiLUT: RenderableVOILUT

a VOI LUT Sequence item

• voiRange?: VOIRange

the input range to lay the curve over

Returns​

Function

Parameters​

• value: number

Returns​

number

Defined in​

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