Name
fill_up_shapefill_up_shapeFillUpShapefill_up_shapeFillUpShapeFillUpShape — Fill up holes in regions having given shape features.
void FillUpShape(const HObject& Region, HObject* RegionFillUp, const HTuple& Feature, const HTuple& Min, const HTuple& Max)
HRegion HRegion::FillUpShape(const HString& Feature, const HTuple& Min, const HTuple& Max) const
HRegion HRegion::FillUpShape(const HString& Feature, double Min, double Max) const
HRegion HRegion::FillUpShape(const char* Feature, double Min, double Max) const
fill_up_shapefill_up_shapeFillUpShapefill_up_shapeFillUpShapeFillUpShape fills up those holes in the input region
RegionRegionRegionRegionRegionregion having given shape features. The parameter
FeatureFeatureFeatureFeatureFeaturefeature determines the shape feature to be used, while
MinMinMinMinMinmin and MaxMaxMaxMaxMaxmax determine the range the shape
feature has to lie in in order for the hole to be filled up.
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Automatically parallelized on tuple level.
Output region(s) with filled holes.
Shape feature used.
Default value:
'area'
"area"
"area"
"area"
"area"
"area"
List of values: 'anisometry'"anisometry""anisometry""anisometry""anisometry""anisometry", 'area'"area""area""area""area""area", 'compactness'"compactness""compactness""compactness""compactness""compactness", 'convexity'"convexity""convexity""convexity""convexity""convexity", 'inner_circle'"inner_circle""inner_circle""inner_circle""inner_circle""inner_circle", 'outer_circle'"outer_circle""outer_circle""outer_circle""outer_circle""outer_circle", 'phi'"phi""phi""phi""phi""phi", 'ra'"ra""ra""ra""ra""ra", 'rb'"rb""rb""rb""rb""rb"
MinMinMinMinMinmin (input_control) number → HTupleHTupleHTupleVARIANTHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong) (double / Hlong) (double / Hlong)
Minimum value for Feature.
Default value: 1.0
Suggested values: 0.0, 1.0, 10.0, 50.0, 100.0, 500.0, 1000.0, 10000.0
Typical range of values: 0.0
≤
Min
Min
Min
Min
Min
min
MaxMaxMaxMaxMaxmax (input_control) number → HTupleHTupleHTupleVARIANTHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong) (double / Hlong) (double / Hlong)
Maximum value for Feature.
Default value: 100.0
Suggested values: 10.0, 50.0, 100.0, 500.0, 1000.0, 10000.0, 100000.0
Typical range of values: 0.0
≤
Max
Max
Max
Max
Max
max
read_image(&Image,"monkey");
threshold(Image,&Seg,120.0,255.0);
fill_up_shape(Seg,&Filled,"area",0.0,200.0);
fill_up_shapefill_up_shapeFillUpShapefill_up_shapeFillUpShapeFillUpShape 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>)set_system("no_object_result",<Result>)SetSystem("no_object_result",<Result>)set_system("no_object_result",<Result>)SetSystem("no_object_result",<Result>)SetSystem("no_object_result",<Result>)
and the behavior in case of an empty input region via
set_system('empty_region_result',<Result>)set_system("empty_region_result",<Result>)SetSystem("empty_region_result",<Result>)set_system("empty_region_result",<Result>)SetSystem("empty_region_result",<Result>)SetSystem("empty_region_result",<Result>).
If necessary, an exception is raised.
thresholdthresholdThresholdthresholdThresholdThreshold,
connectionconnectionConnectionconnectionConnectionConnection,
regiongrowingregiongrowingRegiongrowingregiongrowingRegiongrowingRegiongrowing,
pouringpouringPouringpouringPouringPouring
select_shapeselect_shapeSelectShapeselect_shapeSelectShapeSelectShape,
disp_regiondisp_regionDispRegiondisp_regionDispRegionDispRegion
fill_upfill_upFillUpfill_upFillUpFillUp
select_shapeselect_shapeSelectShapeselect_shapeSelectShapeSelectShape,
connectionconnectionConnectionconnectionConnectionConnection,
area_centerarea_centerAreaCenterarea_centerAreaCenterAreaCenter
Foundation