AForge.NET Framework
2.2.5 version is available!

Noise Generation filters

AForge.NET framework provides set of filters to add some artificially generated
noise to image. This type of filters could be useful in designing different noise removal
filters.

Below is the list of implemented noise generation filters and the result of
their application to the below source image.

Source image

Source image

Additive Noise

The filter adds random value to each pixel of the source image.

// create random generator
IRandomNumberGenerator generator = new UniformGenerator( new DoubleRange( -50, 50 ) );
// create filter
AdditiveNoise filter = new AdditiveNoise( generator );
// apply the filter
filter.ApplyInPlace( image );

Additive Noise filter

Salt-and-Pepper Noise

The filter adds random salt and pepper noise – sets maximum or minimum values to randomly selected pixels.

// create filter
SaltAndPepperNoise filter = new SaltAndPepperNoise( 10 );
// apply the filter
filter.ApplyInPlace( image );

Salt-and-Peppe Noise filter