vm180(1)

PROGRAM
vm180 - Computes a 180 degree rotation of a morphological kernel

SYNTAX

vm180

-i  input image

-o  output image

[-V]
    Gives the version for vm180

[-U]
    Gives the usage for vm180

[-P]
    Prompts for command line options

[-A [file1]]
    Creates the answer file called vm180.ans or file1

[-a [file1]]
    Uses vm180.ans or file1 as the answer file

DESCRIPTION
vm180 computes a 180 degree rotation of a morphological kernel.

From a general scientific perspective, the word MORPHOLOGY refers to the study of form and structure.

The morphological approach is generally based upon the analysis of a two valued image in terms of some predetermined geometric shape known as a structuring element. Essentially, the manner in which the structuring element fits into the image is studied.

The morphological operations can be employed for many purposes, including edge detection, segmentation, and enhancement of images.

A Morpho-kernel is characterized by:

    kernc : number of columns
    kernr : number of rows
    starti : upper left hand corner x_coordinate
    startj : upper left hand corner y_coordinate

The rotated kernel is characterized by:

    new_kernc = kernc
    new_kernr = kernr
    new_starti = -(starti+kernr)
    new_startj = -(startj+kernc)

Relation between the original and rotated kernel:

    kernel(i) = new_kernel(kernc*kernr -1 -i)
    for i between 0 and (kernc*kernr-1)

SET OF MORPHOLOGICAL FUNCTIONS:

vm180 is one of the morphological functions available.

vmcustom:
    Customizes a structuring element

vmerode:
    Erosion

vmdilate:
    Dilation

vmopen:
    Opening

vmclose:
    Closing

vmoredge:
    Edge extractor

vmskeleton:
    Skeleton extractor

These algorithms are obtained from:

    "Morphological Methods in Image and Signal Processing"

    Charles R. Giardina

    Edward R. Dougherty

    Prentice Hall, Englewood Cliffs, New Jersey 07632

ADVICE: The input image must be a morphological kernel (created by vmcustom).

REQUIRED ARGUMENTS

-i  type: infile
    desc: input image

-o  type: outfile
    desc: output image

OPTIONAL ARGUMENTS
none

EXAMPLES
vm180 -i kernel1 -o kernel2

Creates a new kernel, 'kernel2', for a morphological function resulting from a 180 rotation of the input kernel, 'kernel1'.

SEE ALSO
intro(1), verror(3), vgparms(3), vutils(3), lvm180(3) lvm180(3)

RESTRICTIONS
vm180 will work only on morphological kernels created by vmcustom, although it can be used on normal images. In this case remember that ispare1 and ispare2 will be modified.

COPYRIGHT
Copyright 1991, University of New Mexico. All rights reserved.