contrib/tbl/vepl/vepl_add_random_noise.h
Go to the documentation of this file.
00001 #ifndef vepl_add_random_noise_h_
00002 #define vepl_add_random_noise_h_
00003 
00004 //:
00005 // \file
00006 // \brief add random noise to all pixels
00007 //
00008 //   The function vepl_add_random_noise takes two arguments: the input image
00009 //   and the average `width' of the noise.
00010 //
00011 //   Note that the input image data type must support "operator+(double)",
00012 //   or that it has a constructor taking `double' as argument.
00013 //   Thus when random noise is to be added to colour images, the
00014 //   operator `vil1_rgb<ubyte>+double' must be defined.
00015 //   This should be changed in the future.
00016 //
00017 // \author Peter Vanroose, K.U.Leuven (ESAT/PSI)
00018 // \date   28 April 2001
00019 
00020 #include <vil1/vil1_image.h>
00021 
00022 //: add random noise to all pixels
00023 vil1_image vepl_add_random_noise(vil1_image const& , double maxdev);
00024 
00025 #endif // vepl_add_random_noise_h_