fuzzyclust.image.plot_label_image#

fuzzyclust.image.plot_label_image(labels, ax=None, title=None, n_clusters=None, order=None)[source]#

Show a label image with the fixed cluster palette (cluster i in color i).

Parameters:
labelsndarray of shape (H, W)
axmatplotlib Axes, optional
titlestr, optional
n_clustersint, optional

Number of labels (default: labels.max() + 1).

orderarray_like of int, optional

Permutation applied to the labels before drawing, e.g. the matching of match_labels(), so that the same region has the same color in several panels.

Returns:
axmatplotlib Axes

Examples using fuzzyclust.image.plot_label_image#

Image segmentation under noise: six spatially constrained FCM variants

Image segmentation under noise: six spatially constrained FCM variants

Spatial FCM: the neighborhood weight and the window size

Spatial FCM: the neighborhood weight and the window size