ClassesClassesClassesClasses | | | | Operators

gray_opening_rectgray_opening_rectGrayOpeningRectgray_opening_rectGrayOpeningRectGrayOpeningRect (Operator)

Name

gray_opening_rectgray_opening_rectGrayOpeningRectgray_opening_rectGrayOpeningRectGrayOpeningRect — Perform a gray value opening with a rectangular mask.

Signature

gray_opening_rect(Image : ImageOpening : MaskHeight, MaskWidth : )

Herror gray_opening_rect(const Hobject Image, Hobject* ImageOpening, const Hlong MaskHeight, const Hlong MaskWidth)

Herror T_gray_opening_rect(const Hobject Image, Hobject* ImageOpening, const Htuple MaskHeight, const Htuple MaskWidth)

Herror gray_opening_rect(Hobject Image, Hobject* ImageOpening, const HTuple& MaskHeight, const HTuple& MaskWidth)

HImage HImage::GrayOpeningRect(const HTuple& MaskHeight, const HTuple& MaskWidth) const

HImageArray HImageArray::GrayOpeningRect(const HTuple& MaskHeight, const HTuple& MaskWidth) const

void GrayOpeningRect(const HObject& Image, HObject* ImageOpening, const HTuple& MaskHeight, const HTuple& MaskWidth)

HImage HImage::GrayOpeningRect(Hlong MaskHeight, Hlong MaskWidth) const

void HOperatorSetX.GrayOpeningRect(
[in] IHUntypedObjectX* Image, [out] IHUntypedObjectX*ImageOpening, [in] VARIANT MaskHeight, [in] VARIANT MaskWidth)

IHImageX* HImageX.GrayOpeningRect(
[in] Hlong MaskHeight, [in] Hlong MaskWidth)

static void HOperatorSet.GrayOpeningRect(HObject image, out HObject imageOpening, HTuple maskHeight, HTuple maskWidth)

HImage HImage.GrayOpeningRect(int maskHeight, int maskWidth)

Description

gray_opening_rectgray_opening_rectGrayOpeningRectgray_opening_rectGrayOpeningRectGrayOpeningRect applies a gray value opening to the input image ImageImageImageImageImageimage with a rectangular mask of size (MaskHeightMaskHeightMaskHeightMaskHeightMaskHeightmaskHeight, MaskWidthMaskWidthMaskWidthMaskWidthMaskWidthmaskWidth). The resulting image is returned in ImageOpeningImageOpeningImageOpeningImageOpeningImageOpeningimageOpening. If the parameters MaskHeightMaskHeightMaskHeightMaskHeightMaskHeightmaskHeight or MaskWidthMaskWidthMaskWidthMaskWidthMaskWidthmaskWidth are even, they are changed to the next larger odd value. At the border of the image the gray values are mirrored.

The gray value opening of an image i with a rectangular structuring element s is defined as

i.e., an erosion of the image with s followed by a dilation with s (see gray_erosion_rectgray_erosion_rectGrayErosionRectgray_erosion_rectGrayErosionRectGrayErosionRect and gray_dilation_rectgray_dilation_rectGrayDilationRectgray_dilation_rectGrayDilationRectGrayDilationRect).

Parallelization

Parameters

ImageImageImageImageImageimage (input_object)  (multichannel-)image(-array) objectHImageHImageHImageHImageXHobject (byte / direction / cyclic / uint2 / int2 / int4 / real)

Input image.

ImageOpeningImageOpeningImageOpeningImageOpeningImageOpeningimageOpening (output_object)  (multichannel-)image(-array) objectHImageHImageHImageHImageXHobject * (byte / direction / cyclic / uint2 / int2 / int4 / real)

Gray-opened image.

MaskHeightMaskHeightMaskHeightMaskHeightMaskHeightmaskHeight (input_control)  extent.y HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong) (Hlong)

Height of the filter mask.

Default value: 11

Suggested values: 3, 5, 7, 9, 11, 13, 15

Typical range of values: 3 ≤ MaskHeight MaskHeight MaskHeight MaskHeight MaskHeight maskHeight ≤ 511

Minimum increment: 2

Recommended increment: 2

Restriction: odd(MaskHeight)

MaskWidthMaskWidthMaskWidthMaskWidthMaskWidthmaskWidth (input_control)  extent.x HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong) (Hlong)

Width of the filter mask.

Default value: 11

Suggested values: 3, 5, 7, 9, 11, 13, 15

Typical range of values: 3 ≤ MaskWidth MaskWidth MaskWidth MaskWidth MaskWidth maskWidth ≤ 511

Minimum increment: 2

Recommended increment: 2

Restriction: odd(MaskWidth)

Result

gray_opening_rectgray_opening_rectGrayOpeningRectgray_opening_rectGrayOpeningRectGrayOpeningRect returns 2 (H_MSG_TRUE) if all parameters are correct. If the input is empty the behavior can be set via set_system('no_object_result',<Result>)set_system("no_object_result",<Result>)SetSystem("no_object_result",<Result>)set_system("no_object_result",<Result>)SetSystem("no_object_result",<Result>)SetSystem("no_object_result",<Result>). If necessary, an exception is raised.

Alternatives

gray_openinggray_openingGrayOpeninggray_openingGrayOpeningGrayOpening, gray_opening_shapegray_opening_shapeGrayOpeningShapegray_opening_shapeGrayOpeningShapeGrayOpeningShape

See also

opening_rectangle1opening_rectangle1OpeningRectangle1opening_rectangle1OpeningRectangle1OpeningRectangle1, gray_dilation_rectgray_dilation_rectGrayDilationRectgray_dilation_rectGrayDilationRectGrayDilationRect, gray_erosion_rectgray_erosion_rectGrayErosionRectgray_erosion_rectGrayErosionRectGrayErosionRect

Module

Foundation


ClassesClassesClassesClasses | | | | Operators