Herror ::gray_dilation (
    Hobject Image,
    Hobject SE,
    Hobject *ImageDilation
)
HImage HImage::GrayDilation (
    const HImage &SE
) const
HImageArray HImageArray::GrayDilation (
    const HImage &SE
) const

Perform a gray value dilation on an image.

::gray_dilation applies a gray value dilation to the input image Image with the structuring element SE. The gray value dilation of an image i with a structuring element s at the pixel position x is defined as:

  (i+s)(x) =  max { 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) -> Hobject: HImage(Array) ( byte )
Input image.

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

ImageDilation (output_object)
image(-array) -> Hobject * : HImage(Array) ( byte )
Gray-dilated image.


Result

::gray_dilation returns H_MSG_TRUE if the structuring element is not the empty region. Otherwise, an exception is raised.


Possible Predecessors

::read_gray_se


Possible Successors

::sub_image, ::gray_erosion


Alternatives

::gray_dilation_rect


See also

::gray_opening, ::gray_closing, ::dilation1, ::gray_skeleton


Module

Image filters



Copyright © 1996-2002 MVTec Software GmbH