Collection of functions that add noise to Cvb Images.
More...
|
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...
|
|
Collection of functions that add noise to Cvb Images.
◆ 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
-
img | image to add the noise to |
mean | mean value of the gaussian distribution |
stdDev | standard deviation of the gaussian distribution |
seed | seed value for the pseudo random number generator |
- Returns
- the input image with added noise
- Exceptions
-
ArgumentNullException | If the input img is null |
ObjectDisposedException | If 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
-
img | image to add the noise to |
lowest | lower bound of the uniform distribution |
highest | upper bound of the uniform distribution |
seed | seed value for the pseudo random number generator |
- Returns
- the input image with added noise
- Exceptions
-
ArgumentNullException | If the input img is null |
ObjectDisposedException | If the input img has already been disposed |