Perform a gray value erosion on an image.
::gray_erosion applies a gray value erosion to the input image Image with the structuring element SE. The gray value erosion of an image i with a structuring element s at the pixel position x is defined as:
(i-s)(x) = min { f(x+z)-s(z) | z in S }
Here, S is the domain of the structuring element s, i.e., the
pixels z where s(z) > 0 (see ::read_gray_se).
|
Image (input_object) |
image(-array) -> Hobject: HImage(Array) ( byte ) |
| Input image. | |
|
SE (input_object) |
image -> Hobject: HImage ( byte ) |
| Structuring element. | |
|
ImageErosion (output_object) |
image(-array) -> Hobject * : HImage(Array) ( byte ) |
| Gray-eroded image. | |
::gray_erosion returns H_MSG_TRUE if the structuring element is not the empty region. Otherwise, an exception is raised.
::gray_opening, ::gray_closing, ::erosion1, ::gray_skeleton
Image filters