Python2 (OpenCV, NumPy) application to refocus blurred images using Wiener deconvolution.
Original file is from OpenCV samples.
This code performs Wiener deconvolution in order to inverse the impact of image focus blur or motion blur. In order to do that OpenCV and NumPy is used.
Changes in this repository enabled:
Focus blur reduction:
Motion blur reduction:
Example custom kernel obtained from a photo containing motion trail of small, bright object: