| [Top] [Up] [Prev] [Next] | [Up] [Basic Concepts] [Demonstrations] [Functions] | SDC Morphology Toolbox V1.1 15Jan02 |
y = mmcbisector( f, B, n ) f: Binary image (logical uint8). B: Structuring element. n: positive integer ( filtering rate) y: Binary image (logical uint8). mmcbisector creates the binary image y by performing a filtering of the morphological skeleton of the binary image f, relative to the structuring element B. The strength of this filtering is controlled by the parameter n. Particularly, if n=0, y is the morphological skeleton of f itself.a=mmbinary(mmreadgray('gear.tif')); Warning: Converting image from binary uint8 to uint8. b=mmcbisector(a,mmsebox,1); c=mmcbisector(a,mmsebox,2); d=mmcbisector(a,mmsebox,3); e=mmcbisector(a,mmsebox,10); mmshow(a); mmshow(b); mmshow(c); mmshow(d); mmshow(e);
|

function y=mmcbisector_equ(f, B, n)
y = mmbinary(zeros(size(f)));
for i=0:length(f)
nb = mmsesum(B,i);
nbp = mmsesum(B,i+1);
f1 = mmero(f,nbp);
f2 = mmcdil(f1,f,B,n);
f3 = mmsubm(mmero(f,nb),f2);
y = mmunion(y,f3);
end; | [Top] [Up] [Prev] [Next] | [Up] [Basic Concepts] [Demonstrations] [Functions] |
|
| Copyright (c) 1998-2002 by SDC Information Systems | ||