[hofig6s21] [Up] [hofig6s26] Chapter 6 - Morphological Processing of Gray-Scale Images

hofig6s24
Regional maxima

Description

This figure illustrates the regional maxima detection.

Demo Script

.

from morph import *
f=mmreadgray('pinha_n.tif');
B=mmsedisk(4);
B8=mmsebox();
f1=mmregmax(f,B8)
f2=mmregmax(mmopen(f,B),B8)
f3=mmregmax(mmopenrec(f,B),B8)
f4=mmregmax(mmareaopen(f,500),B8)
f5=mmregmax(mmhmax(f,80),B8)
mmshow(f)
mmshow(f1)
mmshow(f2)
mmshow(f3)
mmshow(f4)
mmshow(f5)
f f1
f2 f3
f4 f5

[hofig6s21] [Up] [hofig6s26] http://www.python.org