Note
Go to the end to download the full example code or to run this example in your browser via Binder.
Find the intersection of two segmentations#
When segmenting an image, you may want to combine multiple alternative
segmentations. The skimage.segmentation.join_segmentations()
function computes the join of two segmentations, in which a pixel is
placed in the same segment if and only if it is in the same segment in
both segmentations.