[hofig6s4] [Up] [hofig6s6] Chapter 6 - Morphological Processing of Gray-Scale Images

hofig6s5
Open top-hat to compensate uneven illumination

Description

This figure illustrates the use of gray-scale open top-hat to compensate uneven illumination.

Demo Script

.

from morph import *
f=mmreadgray('rgrid_n.tif')
D=mmsedisk(10)
g=mmopen(f,D)
gth=mmopenth(f,D)
go=mmthreshad(gth,20)
Warning: Converting input image from int32 to uint8.
mmshow(f)
mmshow(g)
mmshow(gth)
mmshow(go)
f g
gth go

[hofig6s4] [Up] [hofig6s6] http://www.python.org