
vhmed(1)                     Khoros                      vhmed(1)

PROGRAM
     vhmed - Perform median filtering on an image using a histo-
     gram to find the median.

SYNTAX
     vhmed

     -i             input image filename

     -o             output image filename

     -w             window width argument

     -h             window height argument

     [-V]           Gives the version for vhmed

     [-U]           Gives the usage for vhmed

     [-P]           Prompts for command line options

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

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

DESCRIPTION
     vhmed computes a two dimensional median filter of width w
     and height h over the given image.  The median is computed
     by moving a w by h pixel mask over the image and updating
     the histogram of the mask.

     Images must be of data storage type byte.

     In rectangular odd windows (masks) the median value is
     replaced in the center pixel location of the window. The
     default window size is 3x3.

     The width or height of a window cannot be an even number.

REQUIRED ARGUMENTS
     -i     type: infile
            desc: input image filename

     -o     type: outfile
            desc: output image filename

     -w     type: integer
            desc: window width argument

     -h     type: integer
            desc: window height argument

OPTIONAL ARGUMENTS
     none

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

     This command performs median filtering 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), lvhmed(3)
     vqmed(1)

RESTRICTIONS
     vhmed does not support even window dimensions and only works
     on data storage type byte.

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

Khoros                    Release: 1.0                          1

