Skip to content

Instantly share code, notes, and snippets.

View wzj207's full-sized avatar
💭
今天学习使用github

昭君 wzj207

💭
今天学习使用github
  • 中国北京
View GitHub Profile
@wzj207
wzj207 / add_gaussian_noise.py
Created February 3, 2020 09:58 — forked from Prasad9/add_gaussian_noise.py
Python code to add random Gaussian noise on images
import cv2
def add_gaussian_noise(X_imgs):
gaussian_noise_imgs = []
row, col, _ = X_imgs[0].shape
# Gaussian distribution parameters
mean = 0
var = 0.1
sigma = var ** 0.5