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