fuzzyclust.image.plot_segmentation#

fuzzyclust.image.plot_segmentation(model, image, clean=None, truth=None, title=None, membership=True)[source]#

Panels original / noisy / labels / membership maps of a fitted SpatialFCM.

Parameters:
modelfitted SpatialFCM
imagendarray

The (noisy) image that was segmented.

cleanndarray, optional

The noise-free image, shown first when given.

truthndarray of shape (H, W), optional

Ground-truth labels; when given, the predicted labels are permuted to match it, and the accuracy is printed in the title.

titlestr, optional

Prefix of the label-panel title (default: the method name).

membershipbool, default=True

Append one membership panel per cluster.

Returns:
axesndarray of matplotlib Axes