gray_closing_rect — 使用矩形掩模执行灰度值闭。
gray_closing_rect(Image : ImageClosing : MaskHeight, MaskWidth : )
gray_closing_rect applies a gray value closing to the input
image Image with a rectangular mask of size
(MaskHeight, MaskWidth).
The resulting image is returned in ImageClosing. If the
parameters MaskHeight or MaskWidth 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_rect and gray_erosion_rect).
请注意,若使用域缩减后的图像作为输入,滤波器算子可能会返回意外结果。请参阅 滤波器 一章
Image (输入对象) (multichannel-)image(-array) → object (byte / direction / cyclic / uint2 / int2 / int4 / real)
输入图像。
ImageClosing (输出对象) (multichannel-)image(-array) → object (byte / direction / cyclic / uint2 / int2 / int4 / real)
Gray-closed image.
MaskHeight (输入控制) extent.y → (integer)
Height of the filter mask.
默认值: 11
建议值: 3, 5, 7, 9, 11, 13, 15
值范围:
3
≤
MaskHeight
≤
511
最小增量: 2
建议增量: 2
限制:
odd(MaskHeight) && MaskHeight < height(Image) * 2
MaskWidth (输入控制) extent.x → (integer)
Width of the filter mask.
默认值: 11
建议值: 3, 5, 7, 9, 11, 13, 15
值范围:
3
≤
MaskWidth
≤
511
最小增量: 2
建议增量: 2
限制:
odd(MaskWidth) && MaskWidth < width(Image) * 2
gray_closing_rect 在所有参数正确时返回 2 ( H_MSG_TRUE )。
如果输入为空则可设置行为通过 set_system('no_object_result',<Result>)。如有必要,则抛出异常。
gray_closing,
gray_closing_shape
closing_rectangle1,
gray_dilation_rect,
gray_erosion_rect
基础