Herror ::gray_opening (
    Hobject Image,
    Hobject SE,
    Hobject *ImageOpening
)
HImage HImage::GrayOpening (
    const HImage &SE
) const
HImageArray HImageArray::GrayOpening (
    const HImage &SE
) const

Perform a gray value opening on an image.

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

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

ImageOpening (output_object)
image(-array) -> Hobject * : HImage(Array) ( byte )
Gray-opened image.


Result

::gray_opening 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

::opening, ::gray_dilation, ::gray_erosion


Module

Image filters



Copyright © 1996-2002 MVTec Software GmbH