[hofig6s24] [Up] [hofig6s29] Chapter 6 - Morphological Processing of Gray-Scale Images

hofig6s26
Regional maxima of synthetic noise image

Description

This figure illustrates the regional maxima detection of synthetic noise image.

Demo Script

.

from morph import *
from MLab import rand
from Numeric import shape
f=mmreadgray('ggray.tif');
fn=mmintersec(mmneg(mmframe(f)),mmaddm(f,uint8(20*rand(shape(f)[0],shape(f)[1]))));
f1=mmregmax(fn);
f2=mmregmax(mmopenrec(fn,mmsedisk(3)));
f3=mmregmax(mmopen(fn,mmsedisk(15)));
f4=mmregmax(mmhmax(fn,150));
f5=mmregmax(mmvmax(fn,23000));
mmshow(f)
mmshow(f1)
mmshow(f2)
mmshow(f3)
mmshow(f4)
mmshow(f5)
f f1 f2 f3 f4 f5

[hofig6s24] [Up] [hofig6s29] http://www.python.org