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) :
Category: morpho
dilatball cells 4 cells_dilatball
cells | cells_dilatball |