skimage2.segmentation.mark_boundaries#
- skimage2.segmentation.mark_boundaries(image, label_img, color=(1, 1, 0), outline_color=None, mode='outer', background_label=0)[source]#
Return image with boundaries between labeled regions highlighted.
- Parameters:
- imagendarray of shape (M, N[, 3])
Grayscale or RGB image.
- label_imgndarray of shape (M, N) and dtype int
Label array where regions are marked by different integer values.
- colorlength-3 sequence, optional
RGB color of boundaries in the output image.
- outline_colorlength-3 sequence, optional
RGB color surrounding boundaries in the output image. If None, no outline is drawn.
- modestring in {‘thick’, ‘inner’, ‘outer’, ‘subpixel’}, optional
The mode for finding boundaries.
- background_labelint, optional
Which label to consider background (this is only useful for modes
innerandouter).
- Returns:
- markedndarray of shape (M, N, 3) and dtype float
An image in which the boundaries between labels are superimposed on the original image.
See also