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:
- model
fittedSpatialFCM - image
ndarray The (noisy) image that was segmented.
- clean
ndarray,optional The noise-free image, shown first when given.
- truth
ndarrayofshape(H,W),optional Ground-truth labels; when given, the predicted labels are permuted to match it, and the accuracy is printed in the title.
- title
str,optional Prefix of the label-panel title (default: the method name).
- membershipbool, default=True
Append one membership panel per cluster.
- model
- Returns:
- axes
ndarrayofmatplotlibAxes
- axes