Dft Wiener Deconvolution With Psf Save

Python2 (OpenCV, NumPy) application to refocus blurred images using Wiener deconvolution.

Project README

README

Original file is from OpenCV samples.

About

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:

  • processing of color images (treated as three independent channels, finally merged into one RGB image) instead of only monochromatic
  • using custom PSF loaded from image file (specified in command line)

Examples

Focus blur reduction:

example 1: focus blur

Motion blur reduction:

example 2: motion blur

Example custom kernel obtained from a photo containing motion trail of small, bright object:

example 3: custom kernel

Open Source Agenda is not affiliated with "Dft Wiener Deconvolution With Psf" Project. README Source: michal2229/dft-wiener-deconvolution-with-psf

Open Source Agenda Badge

Open Source Agenda Rating