fill_upfill_upFillUpFillUpfill_up (算子)
名称
fill_upfill_upFillUpFillUpfill_up — 填充区域中的孔洞。
签名
def fill_up(region: HObject) -> HObject
描述
fill_upfill_upFillUpFillUpFillUpfill_up fills up holes in regions. The number of
regions remains unchanged. The neighborhood type is set via
set_system('neighborhood',<4/8>)set_system("neighborhood",<4/8>)SetSystem("neighborhood",<4/8>)SetSystem("neighborhood",<4/8>)SetSystem("neighborhood",<4/8>)set_system("neighborhood",<4/8>) (default:
8-neighborhood).
执行信息
- 多线程类型:可重入(与非独占算子并行运行)。
- 多线程作用域:全局(可从任何线程调用)。
- 在元组级别上自动并行化。
参数
RegionRegionRegionRegionregionregion (输入对象) region(-array) → objectHRegionHObjectHRegionHobject
Input regions containing holes.
RegionFillUpRegionFillUpRegionFillUpRegionFillUpregionFillUpregion_fill_up (输出对象) region(-array) → objectHRegionHObjectHRegionHobject *
Regions without holes.
结果
fill_upfill_upFillUpFillUpFillUpfill_up 在所有参数正确时返回 2 ( H_MSG_TRUE )。当输入为空(未指定区域)时则可设置行为通过 set_system('no_object_result',<Result>)set_system("no_object_result",<Result>)SetSystem("no_object_result",<Result>)SetSystem("no_object_result",<Result>)SetSystem("no_object_result",<Result>)set_system("no_object_result",<Result>) 以及输入区域为空时可设置行为通过 set_system('empty_region_result',<Result>)set_system("empty_region_result",<Result>)SetSystem("empty_region_result",<Result>)SetSystem("empty_region_result",<Result>)SetSystem("empty_region_result",<Result>)set_system("empty_region_result",<Result>)。如有必要,则抛出异常。
可能的前趋
thresholdthresholdThresholdThresholdThresholdthreshold,
connectionconnectionConnectionConnectionConnectionconnection,
regiongrowingregiongrowingRegiongrowingRegiongrowingRegiongrowingregiongrowing,
pouringpouringPouringPouringPouringpouring
可能的后继
select_shapeselect_shapeSelectShapeSelectShapeSelectShapeselect_shape,
disp_regiondisp_regionDispRegionDispRegionDispRegiondisp_region
替代
fill_up_shapefill_up_shapeFillUpShapeFillUpShapeFillUpShapefill_up_shape
另见
boundaryboundaryBoundaryBoundaryBoundaryboundary
模块
基础