
vqmed(1)                     Khoros                      vqmed(1)

PROGRAM
     vqmed - Perform a median filter on an image using quicksort
     to find the median value.

SYNTAX
     vqmed

     -i             input image

     -o             resulting output image

     -w             filter width

     -h             filter height

     [-V]           Gives the version for vqmed

     [-U]           Gives the usage for vqmed

     [-P]           Prompts for command line options

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

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

DESCRIPTION
     vqmed computes a two dimensional median filter of width w
     and height h over the given image, img.  The median is com-
     puted by moving a w by h pixel mask over the image and sort-
     ing the masked values.  The value of the median filter is
     the (masksize+1)/2 th value in the sorted array.

     The resulting image is of the same type as the input image.

REQUIRED ARGUMENTS
     -i     type: infile
            desc: input image

     -o     type: outfile
            desc: resulting output image

     -w     type: integer
            desc: filter width

     -h     type: integer
            desc: filter height

OPTIONAL ARGUMENTS
     none

EXAMPLES
     vqmed -i input.image -o output.image -w 3 -h 3

     This command performs a median filter of width 3 and height
     3 on input.image and stores the result in output.image.

SEE ALSO
     intro(1), verror(3), vgparms(3), vutils(3), lvqmed(3)
     vhmed(1)

RESTRICTIONS
     vqmed will not operate on data storage type complex.

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

Khoros                    Release: 1.0                          1

