Pink 0.9

erosball.c File Reference

morphological binary erosion by a ball More...


Detailed Description

morphological binary erosion by a ball

Usage: erosball in.pgm r [dist] out.pgm

Description: Morphological binary erosion by a metric ball. This erosion is the dual of the dilatball operator, i.e. erosball(X) = inverse(dilatball(inverse(X))). The structuring element for this erosion is a ball (or a disc) of radius r. The erosion is computed by thresholding a distance map. The distance used depends on the optional parameter dist (default is 0) :

Warning:
The input image in.pgm must be a binary image. No test is done.

Types supported: byte 2d, byte 3d

Category: morpho

Author:
Michel Couprie 2002

Example:

erosball cells 3 cells_erosball

cells.gif
cells_erosball.gif
cells cells_erosball