home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
swCHIP 1991 January
/
swCHIP_95-1.bin
/
demo
/
wit4711
/
lib
/
help
/
morpho
/
gdilate.
/
gdilate.bin
Wrap
Text File
|
1995-12-09
|
1KB
|
30 lines
OPERATOR
gdilate --- greyscale dilation
DESCRIPTION
The gdilate operator performs dilation on greyscale images, but unlike the
binary bdilate operator the greyscale dilation is performed by computing the
maximum value within every neighbourhood of the input image. As with dilation,
only those pixels whose corresponding kernel bits are set are used to
determine the local maxima. The kernel parameter allows the user to specify a
vector of integers corresponding to the structuring element to be applied to
the input image. The vector is treated as a binary input where all non-zero
values are considered to be equivalent to 1. For more on the use of the
kernel, consult the documentation or help for the berode and bdilate operators.
Pixels beyond the image boundary are assumed to be the minimum value possible
for the type of image being processed. This means that they will have no
effect when dealing with a maxima calculation.
Given a grayscale image I, the following identity holds for bdilate and
gdilate:
threshold(gdilate(I)) = bdilate(threshold(I))