I was playing with adding noise to images and noticed that randn does not support setting the mean µ and the standard deviation σ of its distribution. For the moment, I used std::normal_distribution to get the desired effect, but I think these settings should be added to the randn function.
The text was updated successfully, but these errors were encountered:
It took me a while to understand why this is actually true. I did not know that. Therefore it might be a good idea to extend the function definition with these parameters, or at least add your explanation to the documentation.
Sure, I think a line added to randn documentation could work as an example. However, I think this kind of operation is not specific to this function - these are element wise operations covered in the following tutorials
I was playing with adding noise to images and noticed that
randndoes not support setting the mean µ and the standard deviation σ of its distribution. For the moment, I usedstd::normal_distributionto get the desired effect, but I think these settings should be added to therandnfunction.The text was updated successfully, but these errors were encountered: