[Top] [Up] [Prev] [Next] [Up] [Basic Concepts] [Demonstrations] [Functions] SDC Morphology Toolbox V1.1 15Jan02

mmskelmrec - Morphological skeleton reconstruction (Inverse Medial Axis Transform).


Synopsis
y = mmskelmrec( f, B )
Input
f: Gray-scale (uint8 or uint16) or binary image (logical uint8).
B: Structuring element. Default: Elementary cross (mmsecross).
Output
y: Binary image (logical uint8).
Description
mmskelmrec reconstructs the valued morphological skeleton to recover the original image.
Examples
a=mmneg(mmframe(mmbinary(ones(7,9))))
Warning: Converting image from double to uint16.
a =
     0     0     0     0     0     0     0     0     0
     0     1     1     1     1     1     1     1     0
     0     1     1     1     1     1     1     1     0
     0     1     1     1     1     1     1     1     0
     0     1     1     1     1     1     1     1     0
     0     1     1     1     1     1     1     1     0
     0     0     0     0     0     0     0     0     0
b=mmskelm(a,mmsecross,'value')

b =
     0     0     0     0     0     0     0     0     0
     0     1     0     0     0     0     0     1     0
     0     0     2     0     0     0     2     0     0
     0     0     0     3     3     3     0     0     0
     0     0     2     0     0     0     2     0     0
     0     1     0     0     0     0     0     1     0
     0     0     0     0     0     0     0     0     0
c=mmskelmrec(b,mmsecross)

c =
     0     0     0     0     0     0     0     0     0
     0     1     1     1     1     1     1     1     0
     0     1     1     1     1     1     1     1     0
     0     1     1     1     1     1     1     1     0
     0     1     1     1     1     1     1     1     0
     0     1     1     1     1     1     1     1     0
     0     0     0     0     0     0     0     0     0
See Also
mmfreedom - Control automatic data type conversion.
mmskelm - Morphological skeleton (Medial Axis Transform).

[Top] [Up] [Prev] [Next] [Up] [Basic Concepts] [Demonstrations] [Functions] Valid XHTML 1.0!
Copyright (c) 1998-2002 by SDC Information Systems