Skip to main content

Function: getNextColorLUTIndex()

getNextColorLUTIndex(): number

Retrieves the index for the next available color in the Look-Up Table (LUT).

This function uses the default segmentation state manager to get the next available color index from the LUT. This is typically used when assigning colors to new segments in a segmentation.

Returns

number

The index of the next available color in the LUT.

Defined in

tools/src/stateManagement/segmentation/getNextColorLUTIndex.ts:12