[mminfgen] [Up] [mmsupgen] Sup-generating And Inf-generating

mmsupcanon
Union of sup-generating or hit-miss operators.

Synopsis

y = mmsupcanon ( f , Iab , theta = 45, DIRECTION = "CLOCKWISE" )

Input

f Image Binary image

Iab Interval

theta Double

Degrees of rotation: 45, 90, or 180.

Default: 45 (45)

DIRECTION String

Direction of rotation: 'CLOCKWISE' or ' ANTI-CLOCKWISE'

Default: "CLOCKWISE" ('CLOCKWISE')

Output

y Image Binary image

Description

mmsupcanon creates the image y by computing the union of transformations of the image f by sup-generating operators. These hit-miss operators are characterized by rotations (in the clockwise or anti-clockwise direction) of theta degrees of the interval Iab.

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

Equation

See also

mmfreedom Control automatic data type conversion.
mmsupgen Sup-generating (hit-miss).
mmthin Image transformation by thinning.
mmendpoints Interval to detect end-points.
mmhomothick Interval for homotopic thickening.
mmhomothin Interval for homotopic thinning.
mmse2hmt Create a Hit-or-Miss Template (or interval) from a pair of structuring elements.
[mminfgen] [Up] [mmsupgen]