HALCON Reference Manual 10.0.2
Table of Contents / Morphology / Gray Values ClassesClassesClasses | | | Operators

gray_closinggray_closinggray_closingGrayClosingGrayClosing (Operator)

Name

gray_closinggray_closinggray_closingGrayClosingGrayClosing — Perform a gray value closing on an image.

Signature

gray_closing(Image, SE : ImageClosing : : )

Herror gray_closing(const Hobject Image, const Hobject SE, Hobject* ImageClosing)

Herror T_gray_closing(const Hobject Image, const Hobject SE, Hobject* ImageClosing)

Herror gray_closing(Hobject Image, Hobject SE, Hobject* ImageClosing)

HImage HImage::GrayClosing(const HImage& SE) const

HImageArray HImageArray::GrayClosing(const HImage& SE) const

void HOperatorSetX.GrayClosing(
[in] IHUntypedObjectX* Image, [in] IHUntypedObjectX* SE, [out] IHUntypedObjectX*ImageClosing)

IHImageX* HImageX.GrayClosing([in] IHImageX* SE)

static void HOperatorSet.GrayClosing(HObject image, HObject SE, out HObject imageClosing)

HImage HImage.GrayClosing(HImage SE)

Description

gray_closinggray_closinggray_closingGrayClosingGrayClosing applies a gray value closing to the input image ImageImageImageImageimage with the structuring element SESESESESE. The image type of the structuring element SESESESESE must match the image type of the input image ImageImageImageImageimage. The gray value closing of an image i with a structuring element s is defined as

  i +- s = (i + s) - transpose(s) ,

i.e., a dilation of the image with s followed by an erosion with the transposed structuring element (see gray_dilationgray_dilationgray_dilationGrayDilationGrayDilation and gray_erosiongray_erosiongray_erosionGrayErosionGrayErosion). For the generation of structuring elements, see read_gray_seread_gray_seread_gray_seReadGraySeReadGraySe.

The gray value closing is particularly fast for flat structuring elements, i.e., structuring elements with a constant gray level within their domain.

Parallelization

Parameters

ImageImageImageImageimage (input_object)  (multichannel-)image(-array) objectHImageHImageHImageXHobject (byte / uint2 / real)

Input image.

SESESESESE (input_object)  singlechannelimage objectHImageHImageHImageXHobject (byte / uint2 / real)

Structuring element.

ImageClosingImageClosingImageClosingImageClosingimageClosing (output_object)  (multichannel-)image(-array) objectHImageHImageHImageXHobject * (byte / uint2 / real)

Gray-closed image.

Result

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

Possible Predecessors

read_gray_seread_gray_seread_gray_seReadGraySeReadGraySe, gen_disc_segen_disc_segen_disc_seGenDiscSeGenDiscSe, read_imageread_imageread_imageReadImageReadImage

Alternatives

dual_rankdual_rankdual_rankDualRankDualRank, gray_closing_rectgray_closing_rectgray_closing_rectGrayClosingRectGrayClosingRect, gray_closing_shapegray_closing_shapegray_closing_shapeGrayClosingShapeGrayClosingShape

See also

closingclosingclosingClosingClosing, gray_dilationgray_dilationgray_dilationGrayDilationGrayDilation, gray_erosiongray_erosiongray_erosionGrayErosionGrayErosion

Module

Foundation


Table of Contents / Morphology / Gray Values ClassesClassesClasses | | | Operators
HALCON Reference Manual 10.0.2 Copyright © 1996-2011 MVTec Software GmbH