Pink 0.9

openball.c File Reference

morphological binary opening by a ball More...


Detailed Description

morphological binary opening by a ball

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

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

Category: morpho

Author:
Michel Couprie 2002

Example:

openball cells 3 cells_openball

cells.gif
cells_openball.gif
cells cells_openball