Toolbox ia870 | List of Figures | Fig. 1.7 | Fig. 1.9

Figure 1.8 - Structuring element reflection

Description

is the reflection of or a 180-deg rotation of about the origin (see Fig. 1.8).

Demo Script

 1 import numpy as np
 2 import ia870 as MT
 3 from handson.lib import draw_se_axis
 4 
 5 A = adreadgray('MVBook/fish.png');
 6 adshow(MT.ianeg(draw_se_axis(A)), '(a) Structuring element')
 7 
 8 B = MT.iasereflect(MT.iaimg2se(A))
 9 B = draw_se_axis(B)
10 adshow(MT.ianeg(B), '(b) Structuring element reflection')

(a) Structuring element

(b) Structuring element reflection