Classes | Enumerations
contrib/tbl/vipl/vipl_add_random_noise.h File Reference

add random noise to all pixels More...

#include <vipl/filter/vipl_filter_2d.h>
#include <vnl/vnl_sample.h>

Go to the source code of this file.

Classes

class  vipl_add_random_noise< ImgIn, ImgOut, DataIn, DataOut, PixelItr >
 add random noise to all pixels. More...

Enumerations

enum  vipl_random_noise_type { UNIFORM_NOISE, GAUSSIAN_NOISE, EXPONENTIAL_NOISE }

Detailed Description

add random noise to all pixels

This image processing class is implemented using the vipl filters, which means that it can be used with any image class (IUE or not, TargetJr or not, vil or vil1 or not) of any pixel data type.

This class actually implements three random noise addition filters: uniform noise, Gaussian noise and exponential noise.

The constructor takes up to 4 arguments: the noise type (default Gaussian), the `width' (default 5), the initial seed for the random number generator, which defaults to using a "random" seed (based on the current time clock), and finally whether clipping should occur at zero or maxval, or not (default: no clipping; value is set to 0 or maxval respectively).

Note that the input image pixel type must have a constructor taking `double' as argument.

Author:
Peter Vanroose, K.U.Leuven (ESAT/PSI)
Date:
28 may 1998.
   Modifications:
     Peter Vanroose, Aug.2000 - adapted to vxl
     Peter Vanroose, Nov.2002 - now use vnl_sample for RNG, and avoid clipping
   

Definition in file vipl_add_random_noise.h.


Enumeration Type Documentation

Enumerator:
UNIFORM_NOISE 
GAUSSIAN_NOISE 
EXPONENTIAL_NOISE 

Definition at line 37 of file vipl_add_random_noise.h.