OpenCV

gaussianBlur

728x90
import cv2
import numpy as np
#이미지를 부드럽게~

img = cv2.imread('data\images\gaussian-noise.png')

#blur는 컨볼루션까지 다해줘
#3x3커널 사용
des1 = cv2.GaussianBlur(img, (3,3),1)
dst2 = cv2.GaussianBlur(img, (25,25),50)

combined = np.hstack([img,des1,dst2])

cv2.imshow('comb', combined)

cv2.waitKey(0)
cv2.destroyAllWindows()

728x90

'OpenCV' 카테고리의 다른 글

bilateral Filter  (0) 2021.04.20
Median Blur  (0) 2021.04.20
boxfilter  (0) 2021.04.20
convolution  (0) 2021.04.20
warming/cooling  (0) 2021.04.20