Namespace for collection of noise-generating functions from the Foundation package. More...
Functions | |
std::unique_ptr< Image > | AddUniformNoise (const Image &image, double lowest, double highest, int seed) |
Add noise with uniform distribution to an image. | |
std::unique_ptr< Image > | AddGaussNoise (const Image &image, double mean, double stdDev, int seed) |
Add noise with Gaussian distribution to an image. | |
Namespace for collection of noise-generating functions from the Foundation package.
|
inline |
Add noise with Gaussian distribution to an image.
[in] | image | Image to add the noise to. |
[in] | mean | Mean value of the gaussian distribution. |
[in] | stdDev | Standard deviation of the gaussian distribution. |
[in] | seed | Seed value for the pseudo random number generator. |
Any | exception derived from std::exception including CvbException. |
Pixel values that exceed the image's value range are saturated at the minimum and maximum value.
|
inline |
Add noise with uniform distribution to an image.
[in] | image | Image to add the noise to. |
[in] | lowest | Lower bound of the uniform distribution. |
[in] | highest | Upper bound of the uniform distribution. |
[in] | seed | Seed value for the pseudo random number generator. |
Any | exception derived from std::exception including CvbException. |
Pixel values that exceed the image's value range are saturated at the minimum and maximum value.
We use cookies to improve your experience. By using this documentation, you agree to our use of cookies.