# mmdarea
Remove objects with small areas in binary images.

## Description

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.

## Demo Script

### Reading

The binary image to be processed is read.

    >>> a = mmreadgray('circuit_bw.tif')

    >>> mmshow(a)

a |

### Filtering

The procedure areaopen removes the objects with area less than the specified parameter (i.e., 200).

    >>> b = mmareaopen(a,200)

    >>> mmshow(b)

b |

### Final display

For displaying purposes the filtered image is superposed over the original image.

    >>> mmshow(a,b)

a,b |

[`mmdairport`] [Up] [`mmdasp`] |
Copyright (c) 2003, Roberto A. Lotufo, UNICAMP-University of Campinas; Rubens C. Machado, CenPRA-Renato Archer Research Center.