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

mmcthin - Image transformation by conditional thinning.


Synopsis
y = mmcthin( f, g, Iab, n, theta, DIRECTION )
Input
f: Binary image (logical uint8).
g: Binary image (logical uint8).
Iab: Interval. Default: Homotopic thinning interval (mmhomothin).
n: Non-negative integer. Number of iterations. Default: Infinite (-1).
theta: Degrees of rotations: 45, 90, or 180. Default: 45.
DIRECTION: String. 'CLOCKWISE' or ' ANTI-CLOCKWISE'. Default: "CLOCKWISE".
Output
y: Binary image (logical uint8).
Description
mmcthin creates the binary image y by performing a thinning of the binary image f conditioned to the binary image g. The number of iterations of the conditional thinning is n and in each iteration the thinning is characterized by rotations of theta of the interval Iab.
Equation

equation

Algorithm
function y = mmcthin_equ( f, g, Iab, n, theta, DIRECTION )
  y = f;
  for i=1:n
    for alpha=0:theta:360-theta
      Iab = mminterot(Iab, alpha, DIRECTION);
      y = mmunion(mmsubm(y,mmsupgen(y,Iab)),g);
    end;
  end; 
See Also
mmendpoints - Interval to detect end-points.
mmfreedom - Control automatic data type conversion.
mmhomothin - Interval for homotopic thinning.
mmse2hmt - Create a Hit-or-Miss Template (or interval) from a pair of structuring elements.
mmthin - Image transformation by thinning.

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