grains.analysis.show_label_image¶
-
grains.analysis.
show_label_image
(label_image, alpha=1)[source]¶ Displays a labeled image.
A random color is associated with each labeled region. If boundary pixels are present in the image, they are plotted in black.
- Parameters
label_image (ndarray) – Labeled input image, represented as a 2D numpy array of non-negative integers. The label 0 is assumed to denote a boundary pixel.
alpha (float, optional) – Opacity of colorized labels. Must be within [0, 1].
- Returns
None