Operator Reference
opening_rectangle1 (Operator)
opening_rectangle1 — Open a region with a rectangular structuring element.
Signature
opening_rectangle1(Region : RegionOpening : Width, Height : )
Description
opening_rectangle1 behaves as opening with a rectangular
structuring element on the input region Region.
The size of the rectangular structuring element
is determined by the parameters Width and
Height. As is the case for all opening
variants, larger structures are preserved, while small regions like
lines or points are eliminated.
Similar to erosion_rectangle1 and dilation_rectangle1
opening_rectangle1 is a very fast operation.
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 (input_object) region(-array) → object
Regions to be opened.
RegionOpening (output_object) region(-array) → object
Opened regions.
Width (input_control) extent.x → (integer)
Width of the structuring rectangle.
Default: 10
Suggested values: 1, 2, 3, 4, 5, 7, 9, 12, 15, 19, 25, 33, 45, 60, 110, 150, 200
Value range:
1
≤
Width
≤
511 (lin)
Minimum increment: 1
Recommended increment: 1
Height (input_control) extent.y → (integer)
Height of the structuring rectangle.
Default: 10
Suggested values: 1, 2, 3, 4, 5, 7, 9, 12, 15, 19, 25, 33, 45, 60, 110, 150, 200
Value range:
1
≤
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 returns 2 (
H_MSG_TRUE)
if all parameters are
correct. The behavior in case of empty or no input region can be
set via:
-
empty region:
set_system('empty_region_result',<RegionResult>)
Otherwise, an exception is raised.
Possible Predecessors
threshold,
regiongrowing,
watersheds,
class_ndim_norm
Possible Successors
reduce_domain,
select_shape,
area_center,
connection
Alternatives
opening,
gen_rectangle1,
dilation_rectangle1,
erosion_rectangle1
Module
Foundation