morph_skeletonmorph_skeletonMorphSkeletonMorphSkeleton (Operator)

Name

morph_skeletonmorph_skeletonMorphSkeletonMorphSkeleton — Compute the morphological skeleton of a region.

Warning

morph_skeletonmorph_skeletonMorphSkeletonMorphSkeletonMorphSkeleton is obsolete and is only provided for reasons of backward compatibility.

Signature

morph_skeleton(Region : RegionSkeleton : : )

Herror morph_skeleton(const Hobject Region, Hobject* RegionSkeleton)

Herror T_morph_skeleton(const Hobject Region, Hobject* RegionSkeleton)

void MorphSkeleton(const HObject& Region, HObject* RegionSkeleton)

HRegion HRegion::MorphSkeleton() const

static void HOperatorSet.MorphSkeleton(HObject region, out HObject regionSkeleton)

HRegion HRegion.MorphSkeleton()

Description

morph_skeletonmorph_skeletonMorphSkeletonMorphSkeletonMorphSkeleton computes the skeleton of the input regions (RegionRegionRegionRegionregion) 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

Parameters

RegionRegionRegionRegionregion (input_object)  region(-array) objectHRegionHRegionHobject

Regions to be processed.

RegionSkeletonRegionSkeletonRegionSkeletonRegionSkeletonregionSkeleton (output_object)  region(-array) objectHRegionHRegionHobject *

Resulting morphological skeleton.

Result

morph_skeletonmorph_skeletonMorphSkeletonMorphSkeletonMorphSkeleton returns 2 (H_MSG_TRUE) if all parameters are correct. The behavior in case of empty or no input region can be set via:

Otherwise, an exception is raised.

Possible Predecessors

thresholdthresholdThresholdThresholdThreshold, regiongrowingregiongrowingRegiongrowingRegiongrowingRegiongrowing, connectionconnectionConnectionConnectionConnection, union1union1Union1Union1Union1, watershedswatershedsWatershedsWatershedsWatersheds, class_ndim_normclass_ndim_normClassNdimNormClassNdimNormClassNdimNorm

Possible Successors

skeletonskeletonSkeletonSkeletonSkeleton, reduce_domainreduce_domainReduceDomainReduceDomainReduceDomain, select_shapeselect_shapeSelectShapeSelectShapeSelectShape, area_centerarea_centerAreaCenterAreaCenterAreaCenter, connectionconnectionConnectionConnectionConnection

Alternatives

skeletonskeletonSkeletonSkeletonSkeleton

Module

Foundation