简体   繁体   English

使用Python分离模糊的图像

[英]Separate Blurred image using Python

I have two images which are quite similar but one of them is a little bit blurred. 我有两张非常相似的图像,但是其中一张有些模糊。 In image processing, is there any parameter or way to detect the blurred image and separate it from the other one? 在图像处理中,是否有任何参数或方法可以检测模糊图像并将其与另一个图像分开?

One of the ways to find a blurred image is by using Laplacian operator. 查找模糊图像的方法之一是使用拉普拉斯算子。

Steps: 脚步:

1) Read image1 and image2 and convert them to grayscale 1)读取image1和image2并将其转换为灰度

2) Use Laplacian operator to get the edge image. 2)使用拉普拉斯算子获得边缘图像。

3) Find the variance of the Laplacian image. 3)找到拉普拉斯图像的方差。

4) Compare the variances of image1 and image2. 4)比较image1和image2的方差。

5) The image which has the least variance is blurred. 5)方差最小的图像模糊。

Check this link for additional information 检查此链接以获取更多信息

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM