Ask Your Question

shadowphoton's profile - activity

2018-02-15 03:32:51 -0600 received badge  Famous Question (source)
2017-06-02 04:48:40 -0600 received badge  Notable Question (source)
2017-03-13 21:20:26 -0600 received badge  Popular Question (source)
2015-12-17 11:58:00 -0600 received badge  Scholar (source)
2015-12-17 11:48:02 -0600 received badge  Supporter (source)
2015-12-17 11:47:59 -0600 commented answer How to add gaussian noise in all channels of an image with randn?

Yes, this solved it. Thank you.

2015-12-17 11:15:30 -0600 commented question How to add gaussian noise in all channels of an image with randn?

Currently mean is 0, and sigma somwhere around 0.3... But there is no difference for R and G channels if I set mean to 0 or 255, or if I set sigma to 0.01 or 127 or whatever...

2015-12-17 10:34:01 -0600 received badge  Student (source)
2015-12-17 10:22:04 -0600 asked a question How to add gaussian noise in all channels of an image with randn?

I'm not sure if I'm doing something wrong, but I have a strange kind of "misunderstanding" with opencv function (in python) for random number generation - randn() http://docs.opencv.org/2.4/modules/co...

When I try to add gaussian noise to RGB image (adding normally distributed random numbers in "dst" matrix that has 3 channels), those random numbers get only distributed through one channel (the first one... blue). Other channels stay unchanged. I am implementing simple peace of code

cv2.randn(gauss, mean, sigma)

which with

bg, gg, rg = cv2.split(gauss)

shows that I haven't changed anything in gg and rg.

Am I doing something wrong?