| [mmsupgen] [Up] [mmcthin] | Thinning And Thickening |
| User Feedback |
| f | Image Binary image |
| g | Image Binary image |
| Iab | Interval
Default: |
| n | Double Non-negative integer.
Default: Number of iterations. |
| theta | Double
Default: Degrees of rotation: 45, 90, or 180. |
| DIRECTION | String
Default: Direction of rotation: 'CLOCKWISE' or 'ANTI-CLOCKWISE'. |
| y | Image Binary image |
mmcthick creates the binary image y by performing a thickening of the binary image f conditioned to the binary image g. The number of iterations of the conditional thickening is n and in each iteration the thickening is characterized by rotations of theta of the interval Iab.
f=mmreadgray('blob2.tif');
mmshow(f);
t=mmse2hmt(mmbinary([0,0,0;0,0,1;1,1,1]),...
mmbinary([0,0,0;0,1,0;0,0,0]));
Warning: converting image from double to int32 Warning: converting image from double to int32
mmintershow(t)
ans = . . . . 0 1 1 1 1
f1=mmthick(f,t,40); % The thickening makes the image border grow
mmshow(f1);
![]() |
![]() |
|
| f | f1 |

function y = mmcthick_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 = mmintersec(mmunion(y,mmsupgen(y,Iab)),g);
end;
end;
| mmfreedom | Control automatic data type conversion. |
| mmthick | Image transformation by thickening. |
| mmhomothick | Interval for homotopic thickening. |
| mmse2hmt | Create a Hit-or-Miss Template (or interval) from a pair of structuring elements. |
| [mmsupgen] [Up] [mmcthin] | |
| User Feedback | |
| Copyright (c) 1998-2008 by SDC Information Systems |