home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
swCHIP 1991 January
/
swCHIP_95-1.bin
/
demo
/
wit4711
/
lib
/
help
/
morpho
/
gerode.
/
gerode.bin
Wrap
Text File
|
1995-12-09
|
1KB
|
29 lines
OPERATOR
gerode --- greyscale erosion
DESCRIPTION
The gerode operator performs erosion on greyscale images, but unlike the binary
berode operator the greyscale erosion is performed by computing the minimum
value within every neighbourhood of the input image. As with erosion, only
those pixels whose corresponding kernel bits are set are used to determine
the local minima. 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 gerode and bdilate operators.
Pixels beyond the image boundary are assumed to be the maximum value possible
for the type of image being processed. This means that they will have no
effect when dealing with a minima calculation.
Given a grayscale image I, the following identity holds for berode and gerode:
threshold(gerode(I)) = berode(threshold(I))