Skip to content

fill_upFillUpFillUpfill_upfill_up🔗

Short description🔗

fill_upFillUpFillUpfill_upfill_up — Fill up holes in regions.

Signature🔗

fill_up( region Region, out region RegionFillUp )void FillUp( const HObject& Region, HObject* RegionFillUp )static void HOperatorSet.FillUp( HObject region, out HObject regionFillUp )def fill_up( region: HObject ) -> HObject

Herror fill_up( const Hobject Region, Hobject* RegionFillUp )

Herror T_fill_up( const Hobject Region, Hobject* RegionFillUp )

HRegion HRegion::FillUp( ) const

HRegion HRegion.FillUp( )

Description🔗

fill_upFillUp fills up holes in regions. The number of regions remains unchanged. The neighborhood type is set via set_system('neighborhood',<4/8>) (default: 8-neighborhood).

Execution information🔗

Execution information
  • Multithreading type: reentrant (runs in parallel with non-exclusive operators).

  • Multithreading scope: global (may be called from any thread).

  • Automatically parallelized on tuple level.

Parameters🔗

Regionregionregion (input_object) region(-array) → objectHObjectHRegionHObjectHobject

Input regions containing holes.

RegionFillUpregionFillUpregion_fill_up (output_object) region(-array) → objectHObjectHRegionHObjectHobject *

Regions without holes.

Result🔗

fill_upFillUp returns 2 (H_MSG_TRUE) if all parameters are correct. The behavior in case of empty input (no regions given) can be set via set_system('no_object_result',<Result>) and the behavior in case of an empty input region via set_system('empty_region_result',<Result>). If necessary, an exception is raised.

Combinations with other operators🔗

Combinations

Possible predecessors

thresholdThreshold, connectionConnection, regiongrowingRegiongrowing, pouringPouring

Possible successors

select_shapeSelectShape, disp_regionDispRegion

Alternatives

fill_up_shapeFillUpShape

See also

boundaryBoundary

Module🔗

Foundation