This figure illustrates the segmentation by thresholded gradient.
.
from morph import *
from MLab import transpose
f=transpose(mmreadgray('beef.tif'));
g=mmgradm(f,mmsebox());
g50=mmthreshad(g,50);
Warning: Converting input image from int32 to uint8.
g100=mmthreshad(g,100);
mmshow(f)
mmshow(g)
mmshow(g50)
mmshow(g100)