| [Top] [Up] [Prev] [Next] | [Up] [Basic Concepts] [Demonstrations] [Functions] | SDC Morphology Toolbox V1.1 15Jan02 |
y = mmlastero( f, B ) f: Binary image (logical uint8). B: Structuring element. Default: Elementary cross (mmsecross).y: Binary image (logical uint8). mmlastero creates the image y by computing the last erosion by the structuring element B of the image f. The objects found in y are the objects of the erosion by nB that can not be reconstructed from the erosion by (n+1)B, where n is a generic non negative integer. The image y is a proper subset of the morphological skeleton by B of f.a=mmbinary(mmreadgray('blob3.tif')); Warning: Converting image from binary uint8 to uint8. b=mmlastero(a); mmshow(a); mmshow(b);
|

function y=mmlastero(f, b)
y = mmframe(f);
y = mmero(y,mmsebox);
mark = mmero(f,b);
mask = f;
y = mmunion(y,mmsubm(mask,mminfrec(mark,mask,nb)));
mask = mark;
for i=2:length(f)
nb = mmsesum(b,i);
mark = mmero(f,nb);
y = mmunion(y,mmsubm(mask,mminfrec(mark,mask,nb)));
mask = mark;
end; | [Top] [Up] [Prev] [Next] | [Up] [Basic Concepts] [Demonstrations] [Functions] |
|
| Copyright (c) 1998-2002 by SDC Information Systems | ||