Function: removeContourIslands()
removeContourIslands(
segmentationId,segmentIndex,options):void
Removes contour islands from a segmentation segment by detecting and deleting small isolated contours. Islands are contours that are smaller than the specified threshold and are not connected to larger contours. This helps clean up segmentations by removing noise and small artifacts.
Parameters
• segmentationId: string
The unique identifier of the segmentation
• segmentIndex: number
The index of the segment within the segmentation
• options = ...
Configuration options for island detection
• options.threshold: number
The minimum size threshold for contours (default: 3)
Returns
void
Defined in
tools/src/stateManagement/segmentation/utilities/removeContourIslands.ts:23