Name
gray_closing_rectgray_closing_rectGrayClosingRectgray_closing_rectGrayClosingRectGrayClosingRect — Perform a gray value closing with a rectangular mask.
gray_closing_rectgray_closing_rectGrayClosingRectgray_closing_rectGrayClosingRectGrayClosingRect applies a gray value closing to the input
image ImageImageImageImageImageimage with a rectangular mask of size
(MaskHeightMaskHeightMaskHeightMaskHeightMaskHeightmaskHeight, MaskWidthMaskWidthMaskWidthMaskWidthMaskWidthmaskWidth).
The resulting image is returned in ImageClosingImageClosingImageClosingImageClosingImageClosingimageClosing. 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 closing of an image i with a rectangular structuring
element s is defined as
i.e., a dilation of the image with s followed by an erosion with
s (see gray_dilation_rectgray_dilation_rectGrayDilationRectgray_dilation_rectGrayDilationRectGrayDilationRect and gray_erosion_rectgray_erosion_rectGrayErosionRectgray_erosion_rectGrayErosionRectGrayErosionRect).
Note that filter operators may return unexpected results if
an image with a reduced domain is used as input. Please refer to the
chapter Filters.
- Supports OpenCL compute devices.
- 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 domain level.
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)
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)
gray_closing_rectgray_closing_rectGrayClosingRectgray_closing_rectGrayClosingRectGrayClosingRect 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.
gray_closinggray_closingGrayClosinggray_closingGrayClosingGrayClosing,
gray_closing_shapegray_closing_shapeGrayClosingShapegray_closing_shapeGrayClosingShapeGrayClosingShape
closing_rectangle1closing_rectangle1ClosingRectangle1closing_rectangle1ClosingRectangle1ClosingRectangle1,
gray_dilation_rectgray_dilation_rectGrayDilationRectgray_dilation_rectGrayDilationRectGrayDilationRect,
gray_erosion_rectgray_erosion_rectGrayErosionRectgray_erosion_rectGrayErosionRectGrayErosionRect
Foundation