ClassesClassesClassesClasses | | | | Operators

gray_closinggray_closingGrayClosinggray_closingGrayClosingGrayClosing (Operator)

Name

gray_closinggray_closingGrayClosinggray_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 GrayClosing(const HObject& Image, const HObject& SE, HObject* ImageClosing)

HImage HImage::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_closingGrayClosinggray_closingGrayClosingGrayClosing applies a gray value closing to the input image ImageImageImageImageImageimage with the structuring element SESESESESESE. The image type of the structuring element SESESESESESE must match the image type of the input image ImageImageImageImageImageimage. The gray value closing of an image i with a structuring element s is defined as

i.e., a dilation of the image with s followed by an erosion with the transposed structuring element (see gray_dilationgray_dilationGrayDilationgray_dilationGrayDilationGrayDilation and gray_erosiongray_erosionGrayErosiongray_erosionGrayErosionGrayErosion). For the generation of structuring elements, see read_gray_seread_gray_seReadGraySeread_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

ImageImageImageImageImageimage (input_object)  (multichannel-)image(-array) objectHImageHImageHImageHImageXHobject (byte / uint2 / real)

Input image.

SESESESESESE (input_object)  singlechannelimage objectHImageHImageHImageHImageXHobject (byte / uint2 / real)

Structuring element.

ImageClosingImageClosingImageClosingImageClosingImageClosingimageClosing (output_object)  (multichannel-)image(-array) objectHImageHImageHImageHImageXHobject * (byte / uint2 / real)

Gray-closed image.

Result

gray_closinggray_closingGrayClosinggray_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_seReadGraySeread_gray_seReadGraySeReadGraySe, gen_disc_segen_disc_seGenDiscSegen_disc_seGenDiscSeGenDiscSe, read_imageread_imageReadImageread_imageReadImageReadImage

Alternatives

dual_rankdual_rankDualRankdual_rankDualRankDualRank, gray_closing_rectgray_closing_rectGrayClosingRectgray_closing_rectGrayClosingRectGrayClosingRect, gray_closing_shapegray_closing_shapeGrayClosingShapegray_closing_shapeGrayClosingShapeGrayClosingShape

See also

closingclosingClosingclosingClosingClosing, gray_dilationgray_dilationGrayDilationgray_dilationGrayDilationGrayDilation, gray_erosiongray_erosionGrayErosiongray_erosionGrayErosionGrayErosion

Module

Foundation


ClassesClassesClassesClasses | | | | Operators