RETRO (vipl) functions
LIBRARY ROUTINE
lvhmed - Perform median filtering on an image using a histogram to find the median.
LIBRARY CALL
int lvhmed(
xvimage *img,
int xsize,
int ysize)
INPUT
- img - input image
- xsize - window width
- ysize - window height
OUTPUT
- img - holds the result of the median filtered image
RETURN VALUE
TRUE (1) on success, FALSE (0) on failure
DESCRIPTION
lvhmed computes a two dimensional median filter of width w
and height h over the given image, img. The median is
computed by moving a w by h pixel mask over the image
and updating the masked histogram.
In rectangular odd windows (masks) the median value is
replaced in the center pixel location of the window. The
default window format is (3x3).
The resultant image will have a border of pixels of
value 0 since the masking operation works in much the same
way as a convolution.
ADDITIONAL INFORMATION
none
EXAMPLES
none
SIDE EFFECTS
none
RESTRICTIONS
lvhmed does not support even window dimensions and only works
on BYTE images.
MODIFICATION
none
FILES
$RETRO/objects/library/vipl/src/lvhmed.c
SEE ALSO
vipl(3)
COPYRIGHT
Copyright (C) 1993 - 1997, Khoral Research, Inc. ("KRI") All rights reserved.