livecellx.segment.utils.match_mask_labels_by_iou
- livecellx.segment.utils.match_mask_labels_by_iou(seg_label_mask, gt_label_mask, bg_label=0, return_all=False)[source]
compute the similarity between ground truth mask and segmentation mask by intersection over union
- Parameters
- Returns
A <gt2seg_map>, mapping ground truth keys to a dictionary of the best matching segmentation label and its iou