CVB.Net 14.0
AddNoise Class Reference

Collection of functions that add noise to Cvb Images. More...

Static Public Member Functions

static Image Uniform (Image img, double lowest, double highest, int seed)
 Add noise with uniform distribution to an image. Pixel values that exceed the image's value range are saturated at the minimum and maximum value. More...
 
static Image Gauss (Image img, double mean, double stdDev, int seed)
 Add noise with Gaussian distribution to an image. Pixel values that exceed the image's value range are saturated at the minimum and maximum value. More...
 

Detailed Description

Collection of functions that add noise to Cvb Images.

Member Function Documentation

◆ Gauss()

static Image Gauss ( Image  img,
double  mean,
double  stdDev,
int  seed 
)
static

Add noise with Gaussian distribution to an image. Pixel values that exceed the image's value range are saturated at the minimum and maximum value.

Parameters
imgimage to add the noise to
meanmean value of the gaussian distribution
stdDevstandard deviation of the gaussian distribution
seedseed value for the pseudo random number generator
Returns
the input image with added noise
Exceptions
ArgumentNullExceptionIf the input img is null
ObjectDisposedExceptionIf the input img has already been disposed

◆ Uniform()

static Image Uniform ( Image  img,
double  lowest,
double  highest,
int  seed 
)
static

Add noise with uniform distribution to an image. Pixel values that exceed the image's value range are saturated at the minimum and maximum value.

Parameters
imgimage to add the noise to
lowestlower bound of the uniform distribution
highestupper bound of the uniform distribution
seedseed value for the pseudo random number generator
Returns
the input image with added noise
Exceptions
ArgumentNullExceptionIf the input img is null
ObjectDisposedExceptionIf the input img has already been disposed