Pink 0.9

closeball.c File Reference

morphological binary closing by a ball More...


Detailed Description

morphological binary closing by a ball

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

Description: The closing consists in a dilation (dilatball) followed by an erosion (erosball). The structuring element for this closing is a ball (or a disc) of radius r. The erosion and dilation are 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: binary byte 2D, byte 3D

Category: morpho

Author:
Michel Couprie 2002

Example:

closeball cells 3 cells_closeball

cells.gif
cells_closeball.gif
cells cells_closeball