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

mmcbisector - N-Conditional bisector.


Synopsis
y = mmcbisector( f, B, n )
Input
f: Binary image (logical uint8).
B: Structuring element.
n: positive integer ( filtering rate)
Output
y: Binary image (logical uint8).
Description
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.
Examples
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);
image
(a)
image
(b)
image
(c)
image
(d)
image
(e)
Equation

equation

Algorithm
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; 
See Also
mmfreedom - Control automatic data type conversion.
mmlastero - Last erosion.
mmskelm - Morphological skeleton (Medial Axis Transform).
mmthin - Image transformation by thinning.

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