Skip to main content

Function: getCurrentLabelmapImageIdForViewport()

getCurrentLabelmapImageIdForViewport(viewportId, segmentationId): string | undefined

Retrieves the labelmap image IDs for a specific viewport and segmentation representation.

Parameters​

• viewportId: string

The ID of the viewport.

• segmentationId: string

The ID of the segmentation.

Returns​

string | undefined

An array of labelmap image IDs.

Deprecated​

Use getCurrentLabelmapImageIdsForViewport instead. since we have added support for multiple imageIds in the same viewport for the same labelmap representation (overlapping segments usecase)

Defined in​

tools/src/stateManagement/segmentation/getCurrentLabelmapImageIdForViewport.ts:17