How can I add Rayleigh noise to an image in python?
How can I add Rayleigh noise to an image in python? Question: I am doing the following image processing using cv2: import numpy as np import cv2 image = cv2.imread(‘./tomatoes.png’,cv2.IMREAD_GRAYSCALE) noise_std = 0.1 noise = np.random.rayleigh(noise_std, image.shape) noisy_image = image + noise cv2.imwrite(‘noisy_image.jpg’, noisy_image) cv2.imshow(‘Noisy Image’, noisy_image) cv2.waitKey(0) The problem is: I only receive a …