deblurring image by deconvolution using opencv

眉间皱痕 提交于 2019-12-03 20:24:16

The problem is most likely that your blurring kernel has vanishing coefficients for certain frequencies. For each coefficient of the transform of your signal (f) and blurring kernel (h), you calculate f/h right now. This is effectively a division by zero for these coefficients, resulting in the strong noise you observe.

A quick solution for this would be pseudo-inverse filtering:

use f/h only for |h| > epsilon

set coefficient to 0 else

If this isn't smooth enough, you can get better results with wiener filtering.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!