[mmcthick] [Up] [mmcwatershed] Thinning And Thickening

mmcthin
Image transformation by conditional thinning.

Synopsis

function y = mmcthin ( f , g , Iab , n , theta , DIRECTION )

Input

f Image Binary image
g Image Binary image
Iab Interval

Default: Interval for homotopic thinning

n Double Non-negative integer.

Default: Infinite (denoted by -1)

Number of iterations.

theta Double

Default: 45

Degrees of rotations: 45, 90, or 180.

DIRECTION String

Default: 'CLOCKWISE'

Direction of rotation: 'CLOCKWISE' or ' ANTI-CLOCKWISE'.

Output

y Image Binary image

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

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

mmfreedom Control automatic data type conversion.
mmthin Image transformation by thinning.
mmendpoints Interval to detect end-points.
mmhomothin Interval for homotopic thinning.
mmse2hmt Create a Hit-or-Miss Template (or interval) from a pair of structuring elements.
[mmcthick] [Up] [mmcwatershed]