| [Top] [Up] [Prev] [Next] | [Up] [Basic Concepts] [Demonstrations] [Functions] | SDC Morphology Toolbox V1.1 15Jan02 |
y = mmcthin( f, g, Iab, n, theta, DIRECTION ) 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".y: Binary image (logical uint8). 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.
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; | [Top] [Up] [Prev] [Next] | [Up] [Basic Concepts] [Demonstrations] [Functions] |
|
| Copyright (c) 1998-2002 by SDC Information Systems | ||