Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import numpy as np
- import cv2
- windowname = 'img'
- cv2.namedWindow(windowname)
- windowname2 = 'denoised'
- cv2.namedWindow(windowname2)
- img = cv2.imread('original.jpg')
- dst = cv2.fastNlMeansDenoising(img,None,3,7,21)
- while(1):
- key = cv2.waitKey(5)
- if key == 27:
- break
- cv2.imshow(windowname,img)
- cv2.imshow(windowname2,dst)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement