[hofig5s29] [Up] [hofig5s34] Chapter 5 - Gray-Scale Morphology

hofig5s30
Radial opening

Description

This figure illustrates the gray-scale radial opening.

Demo Script

.

from morph import *
from handson import mmropen
from Numeric import arange
f=mmreadgray('pasta.jpg');
g=mmropen(f,65,arange(0,175,15))
Warning: Converting input image from int32 to uint8.
mmshow(f)
mmshow(g)
mmshow(mmsurf(f))
mmshow(mmsurf(g))
f g
mmsurf(f) mmsurf(g)

[hofig5s29] [Up] [hofig5s34] http://www.python.org