A demo of structured Ward hierarchical clustering on an image of coins
Compute the segmentation of a 2D image with Ward hierarchical clustering. The clustering is spatially constrained in order for each segmented region to be in one piece.
# Authors: The scikit-learn developers
# SPDX-License-Identifier: BSD-3-Clause
Generate data
from skimage.data import coins
orig_coins = coins()
