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

gray_dilationgray_dilationgray_dilationGrayDilationGrayDilation (Operator)

Name

gray_dilationgray_dilationgray_dilationGrayDilationGrayDilation — Perform a gray value dilation on an image.

Signature

gray_dilation(Image, SE : ImageDilation : : )

Herror gray_dilation(const Hobject Image, const Hobject SE, Hobject* ImageDilation)

Herror T_gray_dilation(const Hobject Image, const Hobject SE, Hobject* ImageDilation)

Herror gray_dilation(Hobject Image, Hobject SE, Hobject* ImageDilation)

HImage HImage::GrayDilation(const HImage& SE) const

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

void HOperatorSetX.GrayDilation(
[in] IHUntypedObjectX* Image, [in] IHUntypedObjectX* SE, [out] IHUntypedObjectX*ImageDilation)

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

static void HOperatorSet.GrayDilation(HObject image, HObject SE, out HObject imageDilation)

HImage HImage.GrayDilation(HImage SE)

Description

gray_dilationgray_dilationgray_dilationGrayDilationGrayDilation applies a gray value dilation 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 dilation of an image i with a structuring element s at the pixel position x is defined as:

  (i+s)(x) =  max { f(x-z)+s(z) | z in S }

Here, S is the domain of the structuring element s (see read_gray_seread_gray_seread_gray_seReadGraySeReadGraySe).

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

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

Gray-dilated image.

Result

gray_dilationgray_dilationgray_dilationGrayDilationGrayDilation 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

Possible Successors

sub_imagesub_imagesub_imageSubImageSubImage, gray_erosiongray_erosiongray_erosionGrayErosionGrayErosion

Alternatives

gray_dilation_rectgray_dilation_rectgray_dilation_rectGrayDilationRectGrayDilationRect, gray_dilation_shapegray_dilation_shapegray_dilation_shapeGrayDilationShapeGrayDilationShape

See also

gray_openinggray_openinggray_openingGrayOpeningGrayOpening, gray_closinggray_closinggray_closingGrayClosingGrayClosing, dilation1dilation1dilation1Dilation1Dilation1, gray_skeletongray_skeletongray_skeletonGraySkeletonGraySkeleton

Module

Foundation


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