Skip to main content

Function: convertContourHoles()

convertContourHoles(segmentationId, segmentIndex, targetSegmentationId?, targetSegmentationIndex?): void

Discovers contour holes in a segment, clears their parent, and adds their annotationUID to the representationData.annotationUIDsSet. Optionally, moves the holes to another segmentation/segment if targetSegmentationId and targetSegmentationIndex are provided.

Parameters​

• segmentationId: string

The unique identifier of the segmentation

• segmentIndex: number

The index of the segment within the segmentation

• targetSegmentationId?: string

(optional) The target segmentation to move holes to

• targetSegmentationIndex?: number

(optional) The target segment index in the target segmentation

Returns​

void

Defined in​

tools/src/stateManagement/segmentation/utilities/convertContourHoles.ts:23