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:
- labels
ndarrayofshape(H,W) - ax
matplotlibAxes,optional - title
str,optional - n_clusters
int,optional Number of labels (default:
labels.max() + 1).- orderarray_like
ofint,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.
- labels
- Returns:
- ax
matplotlibAxes
- ax
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