[mmlgranul] [Up] Additional Toolbox functions

mmropen
Radial open

Synopsis

y = mmropen( f, l, rtheta )

Implemented in Python.

Input

f mmIMAGE.
l mmDOUBLE.

length.

rtheta mmIMAGE.

Vector of angles.

Output

y mmIMAGE.

Description

The radial open is the union of several openings, each one with a linear structuring element of different angle.

Source Code

def mmropen(f, l, rtheta):
    from morph import mmseline, mmintersec, mmopen, mmunion
    y=mmintersec(f,0)
    for t in rtheta:
      g=mmopen(f,mmseline(l,t))
      y=mmunion(y,g)
    return y
    
[mmlgranul] [Up] http://www.python.org