erosion_rectangle1 — 用矩形结构元素腐蚀一个区域。
erosion_rectangle1(Region : RegionErosion : Width, Height : )
erosion_rectangle1 applies an erosion with a rectangular
structuring element to the input regions Region. The size
of the structuring rectangle is Width x
Height. The operator results in reduced regions, and the
areas smaller than the rectangular mask are eliminated.
erosion_rectangle1 is a very fast operation because the
height of the rectangle enters only logarithmically into the runtime
complexity, while the width does not enter at all. This leads to
excellent runtime efficiency, even in the case of very large
rectangles (edge length > 100).
Regions containing small connecting strips between large areas are separated only seemingly. They remain logically one region.
To reduce a region by the same amount in all directions,
Width and Height must be odd. If this is not the
case, the region is eroded by a smaller amount at the right or at the
bottom, respectively, than at the left or at the top.
Region (输入对象) region(-array) → object
Regions to be eroded.
RegionErosion (输出对象) region(-array) → object
Eroded regions.
Width (输入控制) extent.x → (integer)
Width of the structuring rectangle.
默认值: 11
建议值: 1, 2, 3, 4, 5, 11, 15, 21, 31, 51, 71, 101, 151, 201
值范围:
1
≤
Width
≤
511 (lin)
最小增量: 1
建议增量: 1
Height (输入控制) extent.y → (integer)
Height of the structuring rectangle.
默认值: 11
建议值: 1, 2, 3, 4, 5, 11, 15, 21, 31, 51, 71, 101, 151, 201
值范围:
1
≤
Height
≤
511 (lin)
最小增量: 1
建议增量: 1
Let F1 be the area of an input region and H be the height of the rectangle. Then the runtime complexity for one region is:
erosion_rectangle1 在所有参数正确时返回 2 ( H_MSG_TRUE )。当输入区域为空或不存在时,其行为可通过以下方式设置:
否则,将抛出异常。
threshold,
regiongrowing,
watersheds,
class_ndim_norm
reduce_domain,
select_shape,
area_center,
connection
基础