[mmhomothin] [Up] [mmintershow] Intervals (hit-or-miss templates)

mminterot
Rotate an interval

Synopsis

function Irot = mminterot ( Iab , theta , DIRECTION )

Input

Iab Interval
theta Double

Default: 45

Degrees of rotation. Available values are multiple of 45 degrees.

DIRECTION String

Default: 'CLOCKWISE'

'CLOCKWISE' or 'ANTI-CLOCKWISE'.

Output

Irot Interval

Description

mminterot rotates the interval Iab by an angle theta.

Examples

b1 = mmendpoints;
b2 = mminterot(b1);
mmintershow(b1)
ans =
. . . 
0 1 0 
0 0 0
mmintershow(b2)
ans =
0 . . 
0 1 . 
0 0 0

Equation

Limitations

The rotation angles allowed are multiples of 45 degrees.

See also

mmfreedom Control automatic data type conversion.
mmintershow Visualize an interval.
mmserot Rotate a structuring element.
[mmhomothin] [Up] [mmintershow]