closing_rectangle1 closing_rectangle1 ClosingRectangle1 ClosingRectangle1 closing_rectangle1 (算子)
名称
closing_rectangle1 closing_rectangle1 ClosingRectangle1 ClosingRectangle1 closing_rectangle1 — 用矩形结构元素关闭一个区域。
签名
描述
closing_rectangle1 closing_rectangle1 ClosingRectangle1 ClosingRectangle1 ClosingRectangle1 closing_rectangle1 behaves as closing closing Closing Closing Closing closing with a rectangular
structuring element on the input region Region Region Region Region region region .
The size of the rectangular structuring element
is determined by the parameters Width Width Width Width width width and
Height Height Height Height height height . As is the case for all closing closing Closing Closing Closing closing
variants, regions' boundaries are smoothed and holes within a region
which are smaller than the rectangular structuring element are
closed.
Similar to erosion_rectangle1 erosion_rectangle1 ErosionRectangle1 ErosionRectangle1 ErosionRectangle1 erosion_rectangle1 and dilation_rectangle1 dilation_rectangle1 DilationRectangle1 DilationRectangle1 DilationRectangle1 dilation_rectangle1
closing_rectangle1 closing_rectangle1 ClosingRectangle1 ClosingRectangle1 ClosingRectangle1 closing_rectangle1 is a very fast operation.
注意
closing_rectangle1 closing_rectangle1 ClosingRectangle1 ClosingRectangle1 ClosingRectangle1 closing_rectangle1 is applied to each input region
separately. If gaps between different regions are to be closed,
union1 union1 Union1 Union1 Union1 union1 or union2 union2 Union2 Union2 Union2 union2 has to be called first.
执行信息
多线程类型:可重入(与非独占算子并行运行)。
多线程作用域:全局(可从任何线程调用)。
在元组级别上自动并行化。
参数
Region Region Region Region region region (输入对象) region(-array) → object HRegion HObject HRegion Hobject
Regions to be closed.
RegionClosing RegionClosing RegionClosing RegionClosing regionClosing region_closing (输出对象) region(-array) → object HRegion HObject HRegion Hobject *
Closed regions.
Width Width Width Width width width (输入控制) extent.x → HTuple int HTuple Htuple (integer) (int / long) (Hlong ) (Hlong )
Width of the structuring rectangle.
默认值:
10
建议值:
1, 2, 3, 4, 5, 7, 9, 12, 15, 19, 25, 33, 45, 60, 110, 150, 200
值范围:
1
≤
Width
Width
Width
Width
width
width
≤
511 (lin)
最小增量:
1
建议增量:
1
Height Height Height Height height height (输入控制) extent.y → HTuple int HTuple Htuple (integer) (int / long) (Hlong ) (Hlong )
Height of the structuring rectangle.
默认值:
10
建议值:
1, 2, 3, 4, 5, 7, 9, 12, 15, 19, 25, 33, 45, 60, 110, 150, 200
值范围:
1
≤
Height
Height
Height
Height
height
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:
结果
closing_rectangle1 closing_rectangle1 ClosingRectangle1 ClosingRectangle1 ClosingRectangle1 closing_rectangle1 在所有参数正确时返回 2 ( H_MSG_TRUE )。当输入区域为空或不存在时,其行为可通过以下方式设置:
无区域:
set_system('no_object_result',<RegionResult>) set_system("no_object_result",<RegionResult>) SetSystem("no_object_result",<RegionResult>) SetSystem("no_object_result",<RegionResult>) SetSystem("no_object_result",<RegionResult>) set_system("no_object_result",<RegionResult>)
空区域:
set_system('empty_region_result',<RegionResult>) set_system("empty_region_result",<RegionResult>) SetSystem("empty_region_result",<RegionResult>) SetSystem("empty_region_result",<RegionResult>) SetSystem("empty_region_result",<RegionResult>) set_system("empty_region_result",<RegionResult>)
否则,将抛出异常。
可能的前趋
threshold threshold Threshold Threshold Threshold threshold ,
regiongrowing regiongrowing Regiongrowing Regiongrowing Regiongrowing regiongrowing ,
connection connection Connection Connection Connection connection ,
union1 union1 Union1 Union1 Union1 union1 ,
watersheds watersheds Watersheds Watersheds Watersheds watersheds ,
class_ndim_norm class_ndim_norm ClassNdimNorm ClassNdimNorm ClassNdimNorm class_ndim_norm
可能的后继
reduce_domain reduce_domain ReduceDomain ReduceDomain ReduceDomain reduce_domain ,
select_shape select_shape SelectShape SelectShape SelectShape select_shape ,
area_center area_center AreaCenter AreaCenter AreaCenter area_center ,
connection connection Connection Connection Connection connection
替代
closing closing Closing Closing Closing closing
另见
dilation_rectangle1 dilation_rectangle1 DilationRectangle1 DilationRectangle1 DilationRectangle1 dilation_rectangle1 ,
erosion_rectangle1 erosion_rectangle1 ErosionRectangle1 ErosionRectangle1 ErosionRectangle1 erosion_rectangle1 ,
opening_rectangle1 opening_rectangle1 OpeningRectangle1 OpeningRectangle1 OpeningRectangle1 opening_rectangle1 ,
gen_rectangle1 gen_rectangle1 GenRectangle1 GenRectangle1 GenRectangle1 gen_rectangle1
模块
基础