Expand description
Instance segmentation algorithms
This module provides instance-level segmentation functionality including:
- Watershed-based instance separation
- Mask IoU and Non-Maximum Suppression
- Panoptic Quality metric
- Instance overlap utilities
Structs§
- Instance
Mask - A single instance produced by an instance segmentation model.
Functions§
- instance_
overlap - Check whether two instance masks overlap (share at least one foreground pixel).
- label_
map_ to_ instances - Convert a dense label map (e.g. watershed output) to a vector of
InstanceMasks. - mask_
iou - Compute intersection-over-union between two binary masks.
- mask_
nms - Non-maximum suppression on instance masks using mask IoU.
- panoptic_
quality - Compute Panoptic Quality (PQ), Segmentation Quality (SQ), and Recognition Quality (RQ) for a single semantic class.
- watershed_
instance - Marker-controlled watershed segmentation.