closing_circle closing_circle ClosingCircle ClosingCircle closing_circle (Operator)
Name
closing_circle closing_circle ClosingCircle ClosingCircle closing_circle
— Close a region with a circular structuring element.
Signature
def closing_circle (region : HObject, radius : Union[float, int]) -> HObject
Description
closing_circle closing_circle ClosingCircle ClosingCircle ClosingCircle closing_circle
behaves analogously to
closing closing Closing Closing Closing closing
, i.e., the regions' boundaries are smoothed and
holes within a region which are smaller than the circular
structuring element of radius Radius Radius Radius Radius radius radius
are closed. The
closing_circle closing_circle ClosingCircle ClosingCircle ClosingCircle closing_circle
operation is defined as a dilation
followed by a Minkowski subtraction, both with the same circular
structuring element.
Attention
closing_circle closing_circle ClosingCircle ClosingCircle ClosingCircle closing_circle
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.
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
Region Region Region Region region region
(input_object) region(-array) →
object HRegion HObject HRegion Hobject
Regions to be closed.
RegionClosing RegionClosing RegionClosing RegionClosing regionClosing region_closing
(output_object) region(-array) →
object HRegion HObject HRegion Hobject *
Closed regions.
Radius Radius Radius Radius radius radius
(input_control) real →
HTuple Union[float, int] HTuple Htuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
Radius of the circular structuring element.
Default value: 3.5
Suggested values: 1.5, 2.5, 3.5, 4.5, 5.5, 7.5, 9.5, 12.5, 15.5, 19.5, 25.5, 33.5, 45.5, 60.5, 110.5
Typical range of values: 0.5
≤
Radius
Radius
Radius
Radius
radius
radius
≤
511.5
(lin)
Minimum increment: 1.0
Recommended increment: 1.0
Example (C)
my_closing_circle(Hobject In, double Radius, Hobject *Out)
{
Hobject tmp, StructElement;
gen_circle(StructElement,100.0,100.0,Radius);
dilation1(In,StructElement,&tmp,1);
minkowski_sub1(tmp,StructElement,Out,1);
}
Complexity
Let F1 be the area of the input region. Then the runtime
complexity for one region is:
Result
closing_circle closing_circle ClosingCircle ClosingCircle ClosingCircle closing_circle
returns 2 (H_MSG_TRUE ) if all parameters are
correct. The behavior in case of empty or no input region can be
set via:
no region:
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>)
empty region:
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>)
Otherwise, an exception is raised.
Possible Predecessors
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
Possible Successors
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
Alternatives
rank_region rank_region RankRegion RankRegion RankRegion rank_region
,
fill_up fill_up FillUp FillUp FillUp fill_up
,
closing closing Closing Closing Closing closing
See also
dilation1 dilation1 Dilation1 Dilation1 Dilation1 dilation1
,
minkowski_sub1 minkowski_sub1 MinkowskiSub1 MinkowskiSub1 MinkowskiSub1 minkowski_sub1
,
erosion1 erosion1 Erosion1 Erosion1 Erosion1 erosion1
,
opening opening Opening Opening Opening opening
Module
Foundation