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) :
- 0: approximate euclidean distance
- 2: chamfer distance
- 4: 4-distance in 2d
- 8: 8-distance in 2d
- 6: 6-distance in 3d
- 18: 18-distance in 3d
- 26: 26-distance in 3d
- 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
1.2.18