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.
Namespace: Stemmer.Cvb.Foundation
Assembly: Stemmer.Cvb.Foundation (in Stemmer.Cvb.Foundation.dll) Version: 14.0.0.0
Syntax
Parameters
- img
- Type: Stemmer.CvbImage
image to add the noise to - mean
- Type: SystemDouble
mean value of the gaussian distribution - stdDev
- Type: SystemDouble
standard deviation of the gaussian distribution - seed
- Type: SystemInt32
seed value for the pseudo random number generator
Return Value
Type: Imagethe input image with added noise
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | If the input img is null |
ObjectDisposedException | If the input img has already been disposed |
See Also