2017-7-19:
图像模糊:
低通滤波器:去噪音(高频)
平均:
import cv2 import numpy as np from matplotlib import pyplot as plt img = cv2.imread('1.jpg') blur = cv2.blur(img,(5,5)) plt.subplot(121),plt.imshow(img),plt.title('Original') plt.xticks([]),pli.yticks([]) plt.subplot(121),plt.imshow(blur),plt.title('Biurred') plt.xticks([]),pli.yticks([]) pli.show()
高斯模糊:加权求和,cv2.GaussianBlur()
blur = cv2.GaussianBlur(img,(5,5),0)