[Top] [Up] [Prev] [Next] [Up] [Basic Concepts] [Demonstrations] [Functions] SDC Morphology Toolbox V1.1 15Jan02

mmserot - Rotate a structuring element.


Synopsis
BROT = mmserot( B, theta, DIRECTION )
Input
B: Structuring element.
theta: Degrees of rotation. Available values are multiple of 45 degrees. Default: 45.
DIRECTION: String. 'CLOCKWISE' or ' ANTI-CLOCKWISE'. Default: "CLOCKWISE".
Output
BROT: Structuring element.
Description
mmserot rotates a structuring element B of an angle theta.
Limitation
Only flat 3x3 structuring elements can be rotated. The rotation angles allowed are multiples of 45 degrees.
Examples
b = mmimg2se([0 0 0; 0 1 1; 0 0 0]);
Warning: Converting image from double to binary uint8.
mmseshow(b)

ans =
     0     1     1
mmseshow(mmserot(b))

ans =
     0     0     0
     0     1     0
     0     0     1
mmseshow(mmserot(b,45,'ANTI-CLOCKWISE'))

ans =
     0     0     1
     0     1     0
     0     0     0
Equation

equation

Reflection is given by

equation

See Also
mmfreedom - Control automatic data type conversion.
mmimg2se - Create a structuring element from a pair of images.
mmseshow - Display a structuring element as an image.

[Top] [Up] [Prev] [Next] [Up] [Basic Concepts] [Demonstrations] [Functions] Valid XHTML 1.0!
Copyright (c) 1998-2002 by SDC Information Systems