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

mmsupgen - Sup-generating (hit-miss).


Synopsis
y = mmsupgen( f, INTER )
Input
f: Binary image (logical uint8).
INTER: Interval.
Output
y: Binary image (logical uint8).
Description
mmsupgen creates the binary image y by computing the transformation of the image f by the sup-generating operator characterized by the interval Iab. The sup-generating operator is just a relaxed template matching, where the criteria to keep a shape is that it be inside the interval Iab. Note that we have the classical template matching when a=b. Note yet that the sup-generating operator is equivalent to the classical hit-miss operator.
Examples

Numerical example:

f=mmbinary(uint8([ 0 0 1 0 0 1 1; 0 1 0 0 1 0 0; 0 0 0 1 1 0 0]))

f =
     0     0     1     0     0     1     1
     0     1     0     0     1     0     0
     0     0     0     1     1     0     0
i=mmendpoints;
mmintershow(i)

ans =
. . .
0 1 0
0 0 0 
g=mmsupgen(f,i)

g =
     0     0     0     0     0     0     0
     0     1     0     0     0     0     0
     0     0     0     0     0     0     0

Image example

a=mmbinary(mmreadgray('gear.tif'));
Warning: Converting image from binary uint8 to uint8.
b=mmsupgen(a,mmendpoints);
mmshow(a);
mmshow(mmdil(b));
image
(a)
image
(mmdil(b))
Equation

equation

Algorithm
function y=mmsupgen_equ( f, A, BC )
  y = mmintersec(mmero(f,A),mmero(mmneg(f),BC)); 
See Also
mmendpoints - Interval to detect end-points.
mmfreedom - Control automatic data type conversion.
mmhomothick - Interval for homotopic thickening.
mmhomothin - Interval for homotopic thinning.
mminfgen - Inf-generating.
mmintershow - Visualize an interval.
mmse2hmt - Create a Hit-or-Miss Template (or interval) from a pair of structuring elements.
mmsupcanon - Union of sup-generating or hit-miss operators.

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