Python/Blurring/makenoise.py
#! /usr/bin/env python3
import cv2 as cv
import numpy as np
import scipy.signal as sig
from noise import *
frame = cv.imread("Images/lenna-grey.ppm")
grey = normaliseImage(frame)
gauss = addGaussNoise(grey)
snp = addSaltPepperNoise(grey)
cv.imwrite("lenna-awgn.png",toIntImage(gauss))
cv.imwrite("lenna-grey.png",toIntImage(grey))
cv.imwrite("lenna-snp.png",toIntImage(snp))