[hofig1s5] [Up] [hofig1s7] Chapter 1 - Binary Erosion and Dilation

hofig1s6
Erosion is not a subimage

Description

.

Demo Script

Image reading

from morph import *
A=mmreadgray('club.tif')
mmshow(A)
A

Structuring element

The structuring element does not contain the origin.

B=mmsetrans(mmsedisk(3),int32([14,-14]))
mmshow(mmseshow(B))
mmseshow(B)

Erosion

C=mmero(A,B)
mmshow(C)
C

Illustration

Erosion is not a subimage.

AC=mmsymdif(mmgradm(A),C)
mmshow(AC)
AC

[hofig1s5] [Up] [hofig1s7] http://www.python.org