add random noise to all pixels More...
#include <vil1/vil1_image.h>
Go to the source code of this file.
Functions | |
vil1_image | vepl1_add_random_noise (vil1_image const &, double maxdev) |
add random noise to all pixels. |
add random noise to all pixels
The function vepl1_add_random_noise takes two arguments: the input image and the average `width' of the noise.
Note that the input image data type must support "operator+(double)", or that it has a constructor taking `double' as argument. Thus when random noise is to be added to colour images, the operator `vil1_rgb<ubyte>+double' must be defined. This should be changed in the future.
Definition in file vepl1_add_random_noise.h.
vil1_image vepl1_add_random_noise | ( | vil1_image const & | , |
double | maxdev | ||
) |
add random noise to all pixels.
Definition at line 12 of file vepl1_add_random_noise.cxx.