| [mmhomothin] [Up] [mmintershow] | Intervals (hit-or-miss templates) |
mminterot rotates the interval
Iab by an angle
theta.
>>> b1 = mmendpoints()
>>> b2 = mminterot(b1)
>>> print mmintershow(b1)
. . . 0 1 0 0 0 0
>>> print mmintershow(b2)
0 . . 0 1 . 0 0 0
The rotation angles allowed are multiples of 45 degrees.
def mminterot(Iab, theta=45, DIRECTION="CLOCKWISE"):
from string import upper
DIRECTION = upper(DIRECTION)
A,Bc = Iab
if DIRECTION != 'CLOCKWISE':
theta = 360 - theta
Irot = mmse2hmt(mmserot(A, theta),
mmserot(Bc,theta))
return Irot
| mmfreedom | Control automatic data type conversion. |
| mmintershow | Visualize an interval. |
| mmserot | Rotate a structuring element. |
| [mmhomothin] [Up] [mmintershow] | |
| Copyright (c) 2003, Roberto A. Lotufo, UNICAMP-University of Campinas; Rubens C. Machado, CenPRA-Renato Archer Research Center. |