morph_skeletonmorph_skeletonMorphSkeletonMorphSkeletonmorph_skeleton (Operator)
Name
morph_skeletonmorph_skeletonMorphSkeletonMorphSkeletonmorph_skeleton
— Compute the morphological skeleton of a region.
Warning
morph_skeletonmorph_skeletonMorphSkeletonMorphSkeletonMorphSkeletonmorph_skeleton
is obsolete and is only provided for
reasons of backward compatibility.
Signature
def morph_skeleton(region: HObject) -> HObject
Description
morph_skeletonmorph_skeletonMorphSkeletonMorphSkeletonMorphSkeletonmorph_skeleton
computes the skeleton of the input
regions (RegionRegionRegionRegionregionregion
) using morphological transformations.
The computation yields a disconnected skeleton (gaps in the
diagonals) having a width of one or two pixels. The calculation
uses the Golay element 'h', i.e., an 8-neighborhood. This is
equivalent to the maximum-norm.
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
RegionRegionRegionRegionregionregion
(input_object) region(-array) →
objectHRegionHObjectHRegionHobject
Regions to be processed.
RegionSkeletonRegionSkeletonRegionSkeletonRegionSkeletonregionSkeletonregion_skeleton
(output_object) region(-array) →
objectHRegionHObjectHRegionHobject *
Resulting morphological skeleton.
Result
morph_skeletonmorph_skeletonMorphSkeletonMorphSkeletonMorphSkeletonmorph_skeleton
returns 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.
Possible Predecessors
thresholdthresholdThresholdThresholdThresholdthreshold
,
regiongrowingregiongrowingRegiongrowingRegiongrowingRegiongrowingregiongrowing
,
connectionconnectionConnectionConnectionConnectionconnection
,
union1union1Union1Union1Union1union1
,
watershedswatershedsWatershedsWatershedsWatershedswatersheds
,
class_ndim_normclass_ndim_normClassNdimNormClassNdimNormClassNdimNormclass_ndim_norm
Possible Successors
skeletonskeletonSkeletonSkeletonSkeletonskeleton
,
reduce_domainreduce_domainReduceDomainReduceDomainReduceDomainreduce_domain
,
select_shapeselect_shapeSelectShapeSelectShapeSelectShapeselect_shape
,
area_centerarea_centerAreaCenterAreaCenterAreaCenterarea_center
,
connectionconnectionConnectionConnectionConnectionconnection
Alternatives
skeletonskeletonSkeletonSkeletonSkeletonskeleton
Module
Foundation