Skip to main content

Function: addLabelmapRepresentationToViewport()

addLabelmapRepresentationToViewport(viewportId, labelmapInputArray): void

Adds one or more labelmap segmentations to a specific viewport.

Parameters​

• viewportId: string

The identifier of the viewport to add the labelmap segmentations to.

• labelmapInputArray: RepresentationPublicInput[]

An array of labelmap segmentation inputs to be added.

Returns​

void

A promise that resolves to an array of segmentation representation UIDs.

Defined in​

tools/src/stateManagement/segmentation/addSegmentationRepresentationsToViewport.ts:65