Main Page   Modules   File List  

openball.c File Reference

morphological binary closing by a ball More...


Detailed Description

morphological binary closing 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 cells_openball


Generated on Fri Dec 17 11:59:38 2004 for Pink by doxygen1.2.18