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

mmsupgen
Sup-generating (hit-miss).

Synopsis

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]])
i=mmendpoints()
print mmintershow(i)
. . . 
0 1 0 
0 0 0
g=mmsupgen(f,i)
print g
[[False False False False False False False]
 [False  True False False False False False]
 [False False False False False False False]]
Image example
a=mmreadgray('gear.tif')
b=mmsupgen(a,mmendpoints())
mmshow(a)
mmshow(mmdil(b))
a mmdil(b)

Equation

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]