semsegdrawing
semsegdrawing ¶
Module for error mask (SemSegInstanceLabel) draw functions
Classes¶
Functions¶
draw_error_mask_on_image ¶
Draws an error mask of a SemSegInstanceLabel on an image
Parameters:
-
label(SemSegInstanceLabel) –label (error mask) to draw on the image
-
image(Image) –image to draw the error masks on
Returns:
-
Image–image with the error mask
Source code in niceml/utilities/semseg/semsegdrawing.py
draw_labels_on_image ¶
Draws multiple prediction and ground truth error mask labels (SemSegInstanceLabel) on an image
Parameters:
-
image(Image) –image to draw the error masks on
-
pred_error_mask_label_list(List[SemSegInstanceLabel]) –list of prediction error mask labels
-
gt_error_mask_label_list(List[SemSegInstanceLabel]) –list of ground truth error mask labels
-
hide_gt(bool, default:False) –flag to hide the gt labels
Returns:
-
Image–Image with predicted and ground truth error masks