[hofig7s10] [Up] [hofig7s12] Chapter 7 - Morphological Segmentation - Watershed

hofig7s11
Segmentation of overlapped convex cells

Description

This figure illustrates the segmentation of overlapped convex cells.

Demo Script

.

from morph import *
f=mmreadgray('touchcell.tif');
d=mmdist(f,mmsecross(),'EUCLIDEAN');
marker=mmregmax(mmopen(d));
ws=mmcwatershed(mmneg(d),marker);
g=mmintersec(f,mmneg(ws));
mmshow(f);
mmshow(mmsurf(d));
mmshow(marker,ws);
mmshow(g);
f mmsurf(d) marker,ws g

[hofig7s10] [Up] [hofig7s12] http://www.python.org