ClassesClassesClassesClasses | | | | Operators

gray_openinggray_openingGrayOpeninggray_openingGrayOpeningGrayOpening (Operator)

Name

gray_openinggray_openingGrayOpeninggray_openingGrayOpeningGrayOpening — Perform a gray value opening on an image.

Signature

gray_opening(Image, SE : ImageOpening : : )

Herror gray_opening(const Hobject Image, const Hobject SE, Hobject* ImageOpening)

Herror T_gray_opening(const Hobject Image, const Hobject SE, Hobject* ImageOpening)

Herror gray_opening(Hobject Image, Hobject SE, Hobject* ImageOpening)

HImage HImage::GrayOpening(const HImage& SE) const

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

void GrayOpening(const HObject& Image, const HObject& SE, HObject* ImageOpening)

HImage HImage::GrayOpening(const HImage& SE) const

void HOperatorSetX.GrayOpening(
[in] IHUntypedObjectX* Image, [in] IHUntypedObjectX* SE, [out] IHUntypedObjectX*ImageOpening)

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

static void HOperatorSet.GrayOpening(HObject image, HObject SE, out HObject imageOpening)

HImage HImage.GrayOpening(HImage SE)

Description

gray_openinggray_openingGrayOpeninggray_openingGrayOpeningGrayOpening applies a gray value opening 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 opening of an image i with a structuring element s is defined as

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

The gray value opening 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.

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

Gray-opened image.

Result

gray_openinggray_openingGrayOpeninggray_openingGrayOpeningGrayOpening 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_opening_rectgray_opening_rectGrayOpeningRectgray_opening_rectGrayOpeningRectGrayOpeningRect, gray_opening_shapegray_opening_shapeGrayOpeningShapegray_opening_shapeGrayOpeningShapeGrayOpeningShape

See also

openingopeningOpeningopeningOpeningOpening, gray_dilationgray_dilationGrayDilationgray_dilationGrayDilationGrayDilation, gray_erosiongray_erosionGrayErosiongray_erosionGrayErosionGrayErosion

Module

Foundation


ClassesClassesClassesClasses | | | | Operators