gray_erosion ( Image, SE : ImageErosion : : )

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).


Parameters

Image (input_object)
image(-array) -> object : byte / real
Input image.

SE (input_object)
image -> object : byte
Structuring element.

ImageErosion (output_object)
image(-array) -> object : byte / real
Gray-eroded image.


Result

gray_erosion returns 2 (H_MSG_TRUE) if the structuring element is not the empty region. Otherwise, an exception is raised.


Parallelization Information

gray_erosion is reentrant and automatically parallelized (on tuple level).


Possible Predecessors

read_gray_se


Possible Successors

gray_dilation, sub_image


Alternatives

gray_erosion_rect


See also

gray_opening, gray_closing, erosion1, gray_skeleton


Module

Foundation



Copyright © 1996-2008 MVTec Software GmbH