opencv 高斯模糊
import numpy as np
import cv2
from scipy import ndimage
k33=np.array([[-1,-1,-1],
[-1,8,-1],
[-1,-1,-1]])
k33d=np.array([[1,1,1],
[1,-8,1],
[1,1,1]])
img=cv2.imread('psu.jpeg',0)
lg=cv2.GaussianBlur(img,(11,11),0)
gg=img-lg
#cv2.imwrite('gauss', gg)
cv2.imshow('test',gg)
cv2.waitKey()
cv2.imwrite('gauss', gg)