Function: normalizeVOILUTSequence()
normalizeVOILUTSequence(
voiLUTSequence,pixelRepresentation?):CPUFallbackLUT|undefined
Normalizes a VOI LUT Sequence into the { firstValueMapped, numBitsPerEntry, lut } shape the renderers consume, accepting any of the provider shapes
described above.
The stack path normalizes in the image loader, and the volume path
normalizes in setDefaultVolumeVOI. Thus this function stays in the core
package, where both paths reach it.
Parameters
• voiLUTSequence: unknown
the VOI LUT Sequence, or a single item of it
• pixelRepresentation?: number
(0028,0103) of the image. LUT Descriptor value 2 (First Value Mapped) is signed when it is 1 (C.11.2.1.1), and a provider can give the descriptor as US or as SS.
Returns
CPUFallbackLUT | undefined
the first usable LUT of the sequence, or undefined