[hofig6s10] [Up] [hofig6s13] Chapter 6 - Morphological Processing of Gray-Scale Images

hofig6s12
Gray-scale morphological reconstruction, marker at predefined location

Description

This figure illustrates the gray-scale morphological reconstruction using the marker at a predefined location.

Demo Script

.

from morph import *
f=mmreadgray('bunch-seeds.jpg')
m=mmsubm(f,f)
m[141,310]=255
m=mmdil(m,mmsedisk(10))
g=mminfrec(m,f)
mmshow(mmunion(f,m))
mmshow(g)
mmshow(mmsurf(mmunion(f,m)))
mmshow(mmsurf(g))
mmunion(f,m) g
mmsurf(mmunion(f,m)) mmsurf(g)

[hofig6s10] [Up] [hofig6s13] http://www.python.org