February 2004edilateEuclidean morphological dilation of binary imagesCalling SequenceDil = edilate(Img, [radius, form, algorithm])ParametersImg
M x N Binary image to be dilated. (0 for background, 1 for object)
radius
of circular Euclidean structuring element to be used. Defaults to 5.
form
determines the size of Dil. It assumes be one of the
following values:
'same'Dil has the same size as the original image,
M x N. The image is assumed to be 0 outside its
bounds.
'full'
Dil contains the full dilation, (M+2*radius-1) x
(N+2*radius-1). The image is assumed to be 0
outside its bounds.
algorithm
the method to be used:
'cuisenaire pmn'
a fast exact linear-time algorithm (default)
'costa-estrozi' or 'exact dilations'
a direct exact dilations algorithm
ParametersDil
Resultant image.
Description
Function edilate performs exact euclidean dilation of a binary image Img using a circle as the structuring element. It is implemented in C with state-of-the-art algorithms, optimized for speed. ExamplesThe original image, its binary image obtained by thresholding (padded with a black border for ease of visualization), and its dilation by a radius of 7px:Authors Ricardo Fabbri <ricardofabbri (AT) users DOT sf DOT net> BibliographyCuisenaire
Cuisenaire, O and Macq, B,
"Fast Euclidean Distance Transformation by Propagation Using
Multiple Neighborhoods", Computer Vision and Image Understanding, no. 2,
vol 76, 163--172, 76, 1999.
Chapter 3 of "Distance transformations: fast algorithms and applications
to medical image processing", Olivier Cuisenaire's Ph.D. Thesis, October
1999, Université catholique de Louvain, Belgium.
Exact Dilations
"Multiresolution shape representation without border shifting",
L. da F. Costa, and L. F. Estrozi, Electronics Letters, no. 21, vol. 35,
pp. 1829-1830, 1999.
"Shape Analysis and Classification",
L. da F. Costa and R.M. Cesar Jr., CRC Press.
Availability
The latest version of the Scilab Image Processing toolbox can be found at
http://siptoolbox.sourceforge.net
See Also
dilate
erode
bwdist
thin
skel