fill_upfill_upFillUpFillUpfill_up (算子)

名称

fill_upfill_upFillUpFillUpfill_up — 填充区域中的孔洞。

签名

fill_up(Region : RegionFillUp : : )

Herror fill_up(const Hobject Region, Hobject* RegionFillUp)

Herror T_fill_up(const Hobject Region, Hobject* RegionFillUp)

void FillUp(const HObject& Region, HObject* RegionFillUp)

HRegion HRegion::FillUp() const

static void HOperatorSet.FillUp(HObject region, out HObject regionFillUp)

HRegion HRegion.FillUp()

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

模块

基础