lvinvert(3)

LIBRARY ROUTINE
lvinvert - Inverts the gray-levels of a byte type image.

LIBRARY CALL
#include "vinclude.h"
int
lvinvert(image)
struct xvimage *image;

INPUT

    1. image -- xvimage structure

OUTPUT

    1. image -- holds the inverted image

    image 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.

    lvinvert always returns 1.

MODIFICATIONS
Scott Wilson, Ron E. Neher

DESCRIPTION
lvinvert inverts the gray-levels of a byte type image. This is done by subtracting each pixel in the image from 255.

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

RESTRICTIONS
lvinvert will complain if asked to operate non-byte data storage type input images.

AUTHOR
Marcelo Teran, Ramiro Jordan

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