opening_rectangle1 opening_rectangle1 OpeningRectangle1 OpeningRectangle1 opening_rectangle1 (Operator)
Name
opening_rectangle1 opening_rectangle1 OpeningRectangle1 OpeningRectangle1 opening_rectangle1
— Open a region with a rectangular structuring element.
Signature
Description
opening_rectangle1 opening_rectangle1 OpeningRectangle1 OpeningRectangle1 OpeningRectangle1 opening_rectangle1
performs an
erosion_rectangle1 erosion_rectangle1 ErosionRectangle1 ErosionRectangle1 ErosionRectangle1 erosion_rectangle1
followed by a
dilation_rectangle1 dilation_rectangle1 DilationRectangle1 DilationRectangle1 DilationRectangle1 dilation_rectangle1
on the input region
Region Region Region Region region region
. The size of the rectangular structuring element
is determined by the parameters Width Width Width Width width width
and
Height Height Height Height height height
. As is the case for all opening opening Opening Opening Opening opening
variants, larger structures are preserved, while small regions like
lines or points are eliminated.
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 opened.
RegionOpening RegionOpening RegionOpening RegionOpening regionOpening region_opening
(output_object) region(-array) →
object HRegion HObject HRegion Hobject *
Opened regions.
Width Width Width Width width width
(input_control) extent.x →
HTuple int HTuple Htuple (integer) (int / long) (Hlong ) (Hlong )
Width of the structuring rectangle.
Default value: 10
Suggested values: 1, 2, 3, 4, 5, 7, 9, 12, 15, 19, 25, 33, 45, 60, 110, 150, 200
Typical range of values: 1
≤
Width
Width
Width
Width
width
width
≤
511
(lin)
Minimum increment: 1
Recommended increment: 1
Height Height Height Height height height
(input_control) extent.y →
HTuple int HTuple Htuple (integer) (int / long) (Hlong ) (Hlong )
Height of the structuring rectangle.
Default value: 10
Suggested values: 1, 2, 3, 4, 5, 7, 9, 12, 15, 19, 25, 33, 45, 60, 110, 150, 200
Typical range of values: 1
≤
Height
Height
Height
Height
height
height
≤
511
(lin)
Minimum increment: 1
Recommended increment: 1
Complexity
Let F1 be the area of an input region and H be the height of the
rectangle. Then the runtime complexity for one region is:
Result
opening_rectangle1 opening_rectangle1 OpeningRectangle1 OpeningRectangle1 OpeningRectangle1 opening_rectangle1
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
,
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
opening opening Opening Opening Opening opening
,
gen_rectangle1 gen_rectangle1 GenRectangle1 GenRectangle1 GenRectangle1 gen_rectangle1
,
dilation_rectangle1 dilation_rectangle1 DilationRectangle1 DilationRectangle1 DilationRectangle1 dilation_rectangle1
,
erosion_rectangle1 erosion_rectangle1 ErosionRectangle1 ErosionRectangle1 ErosionRectangle1 erosion_rectangle1
Module
Foundation