[hofig3s14] [Up] [hofig3s16] Chapter 3 - Morphological Processing of Binary Images

hofig3s15
Remove blobs touching the image frame

Description

This figure illustrates the edgeoff operator.

Demo Script

.

from morph import *
A=mmreadgray('blob3.tif')
F=mmframe(A)
S=mminfrec(F,A,mmsebox())
Fs=mmunion(mmgray(F),mmgray(A,'uint8',150))
Sr=mmsubm(A,S)
mmshow(A)
mmshow(Fs)
mmshow(S)
mmshow(Sr)
A Fs S Sr

[hofig3s14] [Up] [hofig3s16] http://www.python.org