Main Page Modules File List
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) :
- 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:
erosball cells 3 cells_erosball
| |
cells | cells_erosball |
Generated on Fri Dec 17 11:59:37 2004 for Pink by
1.2.18