lvnot(3)

LIBRARY ROUTINE
lvnot - Compliment an image by subtracting pixel values from a constant.

LIBRARY CALL
#include "vinclude.h"
int
lvnot(img,level)
struct xvimage *img;
float level;

INPUT

    1. img -- xvimage structure
    2. level -- subtraction constant (float)

OUTPUT

    1. img -- xvimage structure img is used for both the input xvimage structure and the output result xvimage structure. This is done to save space, but you must be careful not to overwrite important data.

    lvnot returns a zero upon failure.

MODIFICATIONS
Marcelo Teran, John Rasure

DESCRIPTION
Compliment an image by subtracting pixel values from a constant level (complement = level - pixel). A level value of 255.0 will invert an unsigned character image.

SEE ALSO
vnot(1), intro(3), vipl(3), verror(3), vutils(3)

RESTRICTIONS
lvnot will not operate on COMPLEX or transform data storage type images.

AUTHOR
Scott Wilson

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