Skip to main content

Function: getVOILUTBytesPerEntry()

getVOILUTBytesPerEntry(numEntries, bitsPerEntry, byteLength): 1 | 2

The width in bytes of one entry of LUT Data (0028,3006). An entry is 16 bits (LUT Data is US or OW). A LUT that declares 8 bits for each entry can also pack one entry in each byte, with one pad byte after an odd count (PS3.3 C.11.2.1). The length of the data tells the two apart: packed data has fewer than two bytes for each entry. The wadouri getLUTs uses the same rule.

Parameters​

• numEntries: number

value 1 of LUT Descriptor (0 already read as 65536)

• bitsPerEntry: number

value 3 of LUT Descriptor

• byteLength: number

the length of LUT Data in bytes

Returns​

1 | 2

Defined in​

packages/core/src/utilities/normalizeVOILUTSequence.ts:52