Skip to main content

Function: extractSegmentPolylines()

extractSegmentPolylines(segmentationId, segmentIndex): Map<any, any>

Extracts segment polylines from a segmentation and converts them to canvas space coordinates. This function retrieves all contour annotations for a specific segment and transforms their world coordinates to canvas coordinates for rendering or processing.

Parameters​

• segmentationId: string

The unique identifier of the segmentation

• segmentIndex: number

The index of the segment within the segmentation

Returns​

Map<any, any>

A map of annotation UIDs to their canvas space polylines, or undefined if extraction fails

Defined in​

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