(image)
| 16 | |
| 17 | |
| 18 | def gaussian_noise(image): |
| 19 | noise = np.zeros(image.shape, image.dtype) |
| 20 | m = (15, 15, 15) |
| 21 | s = (30, 30, 30) |
| 22 | cv.randn(noise, m, s) |
| 23 | dst = cv.add(image, noise) |
| 24 | cv.imshow("gaussian noise", dst) |
| 25 | return dst |
| 26 | |
| 27 | |
| 28 | src = cv.imread("./test.png") |
nothing calls this directly
no outgoing calls
no test coverage detected