|[mmdairport] [Up] [mmdasp]||Demonstrations|
In this example, the image of an electric circuit diagram is processed. The circuit diagram image is composed of two kinds of objects: the circuit itself, that has a large area, and the letters, that have small areas. Eliminating all the objects that have area less than 200, we get the image that contains only the circuit diagram.
The binary image to be processed is read.
>>> a = mmreadgray('circuit_bw.tif')
The procedure areaopen removes the objects with area less than the specified parameter (i.e., 200).
>>> b = mmareaopen(a,200)
For displaying purposes the filtered image is superposed over the original image.
|[mmdairport] [Up] [mmdasp]|
|Copyright (c) 2003, Roberto A. Lotufo, UNICAMP-University of Campinas; Rubens C. Machado, CenPRA-Renato Archer Research Center.|