| [mmsupcanon] [Up] [mmcthick] | Sup-generating And Inf-generating |
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.
>>> 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
[[0 0 0 0 0 0 0] [0 1 0 0 0 0 0] [0 0 0 0 0 0 0]]
def mmsupgen(f, INTER):
A,Bc = INTER
y = mmintersec(mmero( f, A),
mmero( mmneg(f), Bc))
return y
| 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] | |
| Copyright (c) 2003, Roberto A. Lotufo, UNICAMP-University of Campinas; Rubens C. Machado, CenPRA-Renato Archer Research Center. |