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

## Synopsis

y = mmsupcanon( 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

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`.

## Equation

## Source Code

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

## 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`] |
Copyright (c) 2003, Roberto A. Lotufo, UNICAMP-University of Campinas; Rubens C. Machado, CenPRA-Renato Archer Research Center.