Herror ::gray_closing (
    Hobject Image,
    Hobject SE,
    Hobject *ImageClosing
)
HImage HImage::GrayClosing (
    const HImage &SE
) const
HImageArray HImageArray::GrayClosing (
    const HImage &SE
) const

Perform a gray value closing on an image.

::gray_closing applies a gray value closing to the input image Image with the structuring element SE. The gray value closing of an image i with a structuring element s is defined as

  i +- s = (i + s) - s ,
i.e., a dilation of the image with s followed by an erosion with s (see ::gray_dilation and ::gray_erosion). For the generation of structuring elements, 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.

ImageClosing (output_object)
image(-array) -> Hobject * : HImage(Array) ( byte )
Gray-closed image.


Result

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


Possible Predecessors

::read_gray_se


Alternatives

::dual_rank


See also

::closing, ::gray_dilation, ::gray_erosion


Module

Image filters



Copyright © 1996-2002 MVTec Software GmbH