MMACH commands


PROGRAM NAME

vrotstr - Rotates a structuring element

DESCRIPTION

vrotstr Creates the rotated structure of a morphological kernel.

The rotation of a structuring element is calculated by turning the structuring element in the clockwise or counterclockwise direction around the origin. The rotation may have steps 0 to 7.

Example of rotation of step 1.

1 1 1 0 1 1 b: 0 1 0 rot1(b): 0 1 1 0 0 0 0 0 0

Example of rotation of step 2.

1 1 1 0 0 1 b: 0 1 0 rot2(b): 0 1 1 0 0 0 0 0 1

We should note that rot1(rot1(b)) = rot2(b).

REQUIRED ARGUMENTS

-str
type: infile
desc: input Morphological Kernel
-rot
type: integer
desc: the step of rotation value
bounds: 0 < [-rot] < 7
-d
type: boolean
desc: rotation direction
-o
type: outfile
desc: output morphological kernel

OPTIONAL ARGUMENTS

none

EXAMPLES

vrotstr -str input_kernel -rot 2 -o output_kernel
Rotates the structuring element in the clockwise direction with step 2.

SEE ALSO

lvrotstr(3)

RESTRICTIONS

REFERENCES

COPYRIGHT

Copyright (C) 1993-1997 Junior Barrera, Roberto Lotufo. All rights reserved.