Operator Reference

gray_openinggray_openingGrayOpeningGrayOpeninggray_opening (Operator)

gray_openinggray_openingGrayOpeningGrayOpeninggray_opening — 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)

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

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

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

HImage HImage.GrayOpening(HImage SE)

def gray_opening(image: HObject, se: HObject) -> HObject

Description

gray_openinggray_openingGrayOpeningGrayOpeninggray_opening applies a gray value opening 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 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_erosionGrayErosionGrayErosiongray_erosion and gray_dilationgray_dilationGrayDilationGrayDilationgray_dilation). For the generation of structuring elements, see read_gray_seread_gray_seReadGraySeReadGraySeread_gray_se.

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

Execution Information

  • Multithreading type: reentrant (runs in parallel with non-exclusive operators).
  • Multithreading scope: global (may be called from any thread).
  • Automatically parallelized on tuple level.
  • Automatically parallelized on channel level.
  • Automatically parallelized on internal data level.

Parameters

ImageImageImageimageimage (input_object)  (multichannel-)image(-array) objectHImageHObjectHObjectHobject (byte / uint2 / real)

Input image.

SESESESEse (input_object)  singlechannelimage objectHImageHObjectHObjectHobject (byte / uint2 / real)

Structuring element.

ImageOpeningImageOpeningImageOpeningimageOpeningimage_opening (output_object)  (multichannel-)image(-array) objectHImageHObjectHObjectHobject * (byte / uint2 / real)

Gray-opened image.

Result

gray_openinggray_openingGrayOpeningGrayOpeninggray_opening 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_seReadGraySeReadGraySeread_gray_se, gen_disc_segen_disc_seGenDiscSeGenDiscSegen_disc_se, read_imageread_imageReadImageReadImageread_image

Alternatives

dual_rankdual_rankDualRankDualRankdual_rank, gray_opening_rectgray_opening_rectGrayOpeningRectGrayOpeningRectgray_opening_rect, gray_opening_shapegray_opening_shapeGrayOpeningShapeGrayOpeningShapegray_opening_shape

See also

openingopeningOpeningOpeningopening, gray_dilationgray_dilationGrayDilationGrayDilationgray_dilation, gray_erosiongray_erosionGrayErosionGrayErosiongray_erosion

Module

Foundation