I tried to add a gaussian noise to a grayscale image with something like:
noise = np.random.normal(0, sigma, img.shape(img))
img = img + noise
The problem is that i got a noisy image when i save it with io.imsave() but not with same one that i used in Matlab, there is some differance in contrast i think because of this statement :Lossy conversion from float64 to uint8. Range [-1713.9923310279846, 1488.4250569343567]. Convert image to uint8 prior to saving to suppress this warning.
So even when i tried to convert it to uint8 i get as a result, an image with white points or event a dark image with some white points. Any idea to solve this lossy conversion that didn't let me get the right noisy image as i want.