lvclip(3)

LIBRARY ROUTINE
lvclip - Clip the range of grey level values

LIBRARY CALL
#include "vinclude.h"
int
lvclip(image,upper,lower)
struct xvimage *image;
float upper,lower;

INPUT

image
    Input image to be clipped

upper
    Upper clipping level

lower
    Lower clipping level

OUTPUT

image
    holds the result of the clipping operation. The output data type is the same as the input data type.

Return value:
    1 on success, 0 on failure.

MODIFICATIONS

Scott Wilson 27-Jan-91 - Removed FFT data type handling.

DESCRIPTION
vclip is used to limit the range of values that grey levels may occupy. Values above the upper limit are set equal to the upper limit. Values below the lower limit are set equal to the lower value.

SEE ALSO
vclip(1), intro(3), vipl(3), verror(3), vutils(3)
vfloor(1)

RESTRICTIONS
lvclip does not work on BIT images. It works on the magnitude of COMPLEX images.

AUTHOR
Scott Wilson

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