Toolbox ia870 | List of Figures | Fig. 3.24 | Fig. 3.28

Figure 3.25 - Area opening

Description

This figure illustrates a typical application of the area open to remove small blobs in the image. In this case, all disconnected symbols of a circuit diagram are removed

Demo Script

1 import numpy as np
2 import ia870 as MT
3 
4 A = adreadgray('circuit_bw.tif') > 0
5 B = MT.iaareaopen(A,200)
6 
7 adshow(A,'(a) input image')
8 adshow(B,'(b) only connected components with area greater or equal to 200 pixels')

(a) input image

(b) only connected components with area greater or equal to 200 pixels

See also