This figure illustrates the segmentation of overlapped convex cells.
.
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);