美文网首页python源码大全
Python代码库OpenCV之08图像过滤blur(含代码)

Python代码库OpenCV之08图像过滤blur(含代码)

作者: iCloudEnd | 来源:发表于2019-12-03 15:06 被阅读0次

Python代码库OpenCV之08图像过滤blur(含代码)

图像过滤

图像过滤(Filtering Images)是一种修改图像并提取或突出显示的机制,它将为计算机视觉提供更多有用信息。图像过滤可以增加或删除图像中的噪音、移除背景或特殊对象、提取边缘、模糊或锐化图像。

代码运行

import numpy
import cv2
filename="D:\\pythondev\\dev\\opencv\\img\\tu.png"
#read the flower image and load it into a variable image
image=cv2.imread(filename) 
#kernel value of 3 3x3 matrix neighbourhood is used
noisereduced_version = cv2.medianBlur(image,9)

cv2.imshow("Original",image)
cv2.imshow("Corrected",noisereduced_version)
cv2.waitKey(0)

运行效果

图像过滤blur

更多精彩代码请关注我的专栏

相关文章

网友评论

    本文标题:Python代码库OpenCV之08图像过滤blur(含代码)

    本文链接:https://www.haomeiwen.com/subject/ypbcgctx.html