Herror ::morph_skeleton (
    Hobject Region,
    Hobject *RegionSkeleton
)
HRegion HRegion::MorphSkeleton (
    void
) const
HRegionArray HRegionArray::MorphSkeleton (
    void
) const

Compute the morphological skeleton of a region.

::morph_skeleton computes the skeleton of the input regions (Region) 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.


Parameters

Region (input_object)
region(-array) -> Hobject: HRegion(Array)
Regions to be processed.

RegionSkeleton (output_object)
region(-array) -> Hobject * : HRegion(Array)
Resulting morphological skeleton.


Result

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

  a) no region:    set_system('no_object_result',<RegionResult>)
  b) empty region: set_system('empty_region_result',<RegionResult>)
Otherwise, an exception is raised.


Possible Predecessors

::threshold, ::regiongrowing, ::connection, ::union1, ::watersheds, ::class_ndim_norm


Possible Successors

::skeleton, ::reduce_domain, ::select_shape, ::area_center, ::connection


Alternatives

::skeleton, ::thinning


See also

::thinning_seq, ::morph_skiz


Module

Morphology



Copyright © 1996-2002 MVTec Software GmbH