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

mminfcanon
Intersection of inf-generating operators.

Synopsis

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

Implemented in Python.

Input

f Image Binary image.
Iab Interval
theta Double

Degrees of rotation: 45, 90, or 180.

Default: 45

DIRECTION String

'CLOCKWISE' or ' ANTI-CLOCKWISE'

Default: "CLOCKWISE"

Output

y Image Binary image.

Description

mminfcanon creates the image y by computing intersections of transformations of the image f by inf-generating (i.e., dual of the hit-or-miss) operators. These inf-generating operators are characterized by rotations (in the clockwise or anti-clockwise direction) of theta degrees of the interval Iab.

Equation

Source Code

def mminfcanon(f, Iab, theta=45, DIRECTION="CLOCKWISE"):
    from string import upper
    DIRECTION = upper(DIRECTION)            
    y = mmunion(f,1)
    for t in range(0,360,theta):
        Irot = mminterot( Iab, t, DIRECTION )
        y = mmintersec( y, mminfgen(f, Irot))
    return y
    

See also

mmfreedom Control automatic data type conversion.
mminfgen Inf-generating.
mmsupcanon Union of sup-generating or hit-miss operators.
[mmthreshad] [Up] [mminfgen] Python