lvdyth - Dynamic thresholding on a median or mean value
LIBRARY CALL
int lvdyth(
xvimage *img,
int wsize,
int hsize,
int type,
int value)
INPUT
wsize - window width argument
hsize - window height argument
type - type of thresholding (0=median, 1=mean)
value - non zero output pixel value
OUTPUT
none
RETURN VALUE
TRUE (1) on success, FALSE (0) on failure
DESCRIPTION
lvdyth performs dynamic thresholding on an image by either
using the median value or mean value of a window as the
threshold value. The window is specified by its width
argument, w, and its height argument, h. Thresholding is
computed by moving the window over the image, and at each new
window location over the image a new threshold value is
determined for the pixel currently at the center of the window.
ADDITIONAL INFORMATION
none
EXAMPLES
none
SIDE EFFECTS
none
RESTRICTIONS
lvdyth supports only BYTE data storage type images.
MODIFICATION
John Rasure on Fri Feb 28 18:41:18 MST 1992 fixed several
indexing bugs and array bound problems.
FILES
$RETRO/objects/library/vipl/src/lvdyth.c
SEE ALSO
vipl(3)
COPYRIGHT
Copyright (C) 1993 - 1997, Khoral Research, Inc. ("KRI") All rights reserved.