| [Top] [Up] [Prev] [Next] | [Up] [Basic Concepts] [Demonstrations] [Functions] | SDC Morphology Toolbox V1.1 15Jan02 |
y = mmcero( f, g, b, n ) f: Gray-scale (uint8 or uint16) or binary image (logical uint8). g: Gray-scale (uint8 or uint16) or binary image (logical uint8). Conditioning image. b: Structuring element. Default: Elementary cross (mmsecross).n: Non-negative integer. (number of iterations). Default: 1.f, g must have the same data type.y: Gray-scale (uint8 or uint16) or binary image (logical uint8). mmcero creates the image y by eroding the image f by the structuring element b conditionally to g. This operator may be applied recursively n times.f = mmneg(mmtext('hello')); mmshow(f); g = mmdil(f,mmseline(7,90)) ; mmshow(g); a1=mmcero(g,f,mmsebox) ; mmshow(a1); a13=mmcero(a1,f,mmsebox,13); mmshow(a13) ;
|


function y=mmcero_equ(f,g,b,n)
y = mmunion(f,g);
for i=1:n
ero = mmero(y,b);
y = mmunion(ero,g);
end | [Top] [Up] [Prev] [Next] | [Up] [Basic Concepts] [Demonstrations] [Functions] |
|
| Copyright (c) 1998-2002 by SDC Information Systems | ||