lvgshot(3)

LIBRARY ROUTINE
lvgshot - Corrupts an image uniformly with spikes (noise).

LIBRARY CALL
#include "vinclude.h"
int
lvgshot(image,percent)
struct xvimage *image;
float percent;

INPUT

image
    pointer to VIFF structure containing image data to be processed.

percent
    spikes percentage

OUTPUT

image
    pointer to VIFF structure containing image data after processing.

Return Value:
    1 on success, 0 on failure.

MODIFICATIONS

DESCRIPTION
corrupts an image uniformly with spikes. The percentage of spikes must be specified by the user. Spike locations are determined using a uniformly distributed random number generator.

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

RESTRICTIONS
can work only with data storage type byte images.

AUTHOR
Marcelo Teran, Ramiro Jordan

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