lvabs(3)

LIBRARY ROUTINE
lvabs - Computes the absolute value of an image.

LIBRARY CALL
#include "vinclude.h"
int
lvabs(img)
struct xvimage *img;

INPUT

    1. img -- xvimage structure

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.

    lvabs returns a zero upon failure.

MODIFICATIONS

DESCRIPTION
Computes the Absolute Value of an image by multipling the negative pixels by -1.

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

RESTRICTIONS
lvabs will not operate on BIT and COMPLEX data storage type images.

AUTHOR
Pascal ADAM

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