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

mmcero - Erode an image conditionally.


Synopsis
y = mmcero( f, g, b, n )
Input
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.
 
Obs: f, g must have the same data type.
Output
y: Gray-scale (uint8 or uint16) or binary image (logical uint8).
Description
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.
Examples
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) ; 
image
(f)
image
(g)
image
(a1)
image
(a13)
Equation

equation

equation

Algorithm
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
See Also
mmero - Erode an image by a structuring element.
mmfreedom - Control automatic data type conversion.
mmimg2se - Create a structuring element from a pair of images.
mmsebox - Create a box structuring element.
mmsecross - Cross structuring element.
mmsuprec - Sup-reconstruction.

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