[mmsupcanon] [Up] [mmcthick] Sup-generating And Inf-generating

mmsupgen
Sup-generating (hit-miss).

Synopsis

function y = mmsupgen ( f , INTER )

Input

f Image Binary image
INTER Interval

Output

y Image Binary image

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 criterion 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([ 0 0 1 0 0 1 1; 0 1 0 0 1 0 0; 0 0 0 1 1 0 0])
Warning: converting image from double to int32
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=mmreadgray('gear.tif');
b=mmsupgen(a,mmendpoints);
mmshow(a);
mmshow(mmdil(b));
a mmdil(b)

Equation

Algorithm

function y=mmsupgen_equ( f, A, BC )
  y = mmintersec(mmero(f,A),mmero(mmneg(f),BC)); 

See also

mmfreedom Control automatic data type conversion.
mminfgen Inf-generating.
mmintershow Visualize an interval.
mmse2hmt Create a Hit-or-Miss Template (or interval) from a pair of structuring elements.
mmendpoints Interval to detect end-points.
mmhomothick Interval for homotopic thickening.
mmhomothin Interval for homotopic thinning.
mmsupcanon Union of sup-generating or hit-miss operators.
[mmsupcanon] [Up] [mmcthick]