00001 #ifndef vepl_add_random_noise_h_ 00002 #define vepl_add_random_noise_h_ 00003 //: 00004 // \file 00005 // \brief add random noise to all pixels 00006 // 00007 // The function vepl_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 // 00013 // \author Peter Vanroose, K.U.Leuven (ESAT/PSI) 00014 // \date 7 October 2002 00015 // 00016 // \verbatim 00017 // Modifications 00018 // Peter Vanroose - 20 aug 2003 - changed parameter and return types from vil_image_view_base_sptr to vil_image_resource_sptr 00019 // \endverbatim 00020 00021 #include <vil/vil_image_resource.h> 00022 00023 //: add random noise to all pixels 00024 vil_image_resource_sptr vepl_add_random_noise(vil_image_resource_sptr, double maxdev); 00025 00026 #endif // vepl_add_random_noise_h_