[Top] [Up] [Prev] [Next] [Up] [Basic Concepts] [Demonstrations] [Functions] SDC Morphology Toolbox V1.1 15Jan02

mmlastero - Last erosion.


Synopsis
y = mmlastero( f, B )
Input
f: Binary image (logical uint8).
B: Structuring element. Default: Elementary cross (mmsecross).
Output
y: Binary image (logical uint8).
Description
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.
Examples
a=mmbinary(mmreadgray('blob3.tif'));
Warning: Converting image from binary uint8 to uint8.
b=mmlastero(a);
mmshow(a);
mmshow(b);
image
(a)
image
(b)
Equation

equation

Algorithm
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; 
See Also
mmcbisector - N-Conditional bisector.
mmfreedom - Control automatic data type conversion.
mmregmax - Regional Maximum.
mmskelm - Morphological skeleton (Medial Axis Transform).

[Top] [Up] [Prev] [Next] [Up] [Basic Concepts] [Demonstrations] [Functions] Valid XHTML 1.0!
Copyright (c) 1998-2002 by SDC Information Systems