Pink 0.9

dilatball.c File Reference

morphological binary dilation by a ball More...


Detailed Description

morphological binary dilation by a ball

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

Description: Morphological binary dilation by a metric ball. If the parameter r is a positive integer, then the structuring element for this dilation is a ball (or a disc) of radius r. In this case the result of the dilation is defined by Y = {x; d(x,X) <= r} where X represents the original point set (non-null pixels in the original image). If the parameter r is -1, then the structuring element for each point x is a ball (or a disc) of radius F(x), where F is the greyscale image in.pgm .

The dilation is computed by thresholding a distance map. The distance used depends on the optional parameter dist (default is 0) :

Warning:
Except for the case r=-1, 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:

dilatball cells 4 cells_dilatball

cells.gif
cells_dilatball.gif
cells cells_dilatball