erosion_seqπ
Short descriptionπ
erosion_seq β Erode a region sequentially.
Warningπ
erosion_seq is obsolete and is only provided for
reasons of backward compatibility.
Signatureπ
erosion_seq( region Region, out region RegionErosion, string GolayElement, integer Iterations )
Descriptionπ
erosion_seq computes the sequential erosion of the
input region Region with the selected structuring element
GolayElement from the Golay alphabet. This is done by
executing the operator erosion_golay with all rotations
of the structuring element Iterations times. The
following structuring elements can be selected:
βlβ, βdβ, βcβ, βfβ, βhβ, βkβ.
Only the βforeground elementsβ (even rotation numbers) are used.
The elements βiβ and βeβ result in unchanged output regions. The
elements βlβ, βmβ and βf2β are identical for the foreground. The
Golay elements, together with all possible rotations, are described
with the operator golay_elements.
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π
Region (input_object) region(-array) β object
Regions to be eroded.
RegionErosion (output_object) region(-array) β object
Eroded regions.
GolayElement (input_control) string β (string)
Structuring element from the Golay alphabet.
Default: 'h'
List of values: 'c', 'd', 'f', 'h', 'k', 'l'
Iterations (input_control) integer β (integer)
Number of iterations.
Default: 1
Suggested values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 15, 17, 20, 30, 40, 50
Value range: 1 β€ Iterations (lin)
Minimum increment: 1
Recommended increment: 1
Complexityπ
Let \(F\) be the area of an input region. Then the runtime complexity for one region is:
Resultπ
erosion_seq 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>) -
empty region:
set_system('empty_region_result',<RegionResult>)
Otherwise, an exception is raised.
Combinations with other operatorsπ
Combinations
Possible predecessors
threshold, regiongrowing, watersheds, class_ndim_norm
Possible successors
connection, reduce_domain, select_shape, area_center
Alternatives
erosion_golay, erosion1, erosion2
See also
Moduleπ
Foundation