Skip to content

Latest commit

 

History

History
29 lines (14 loc) · 1.15 KB

File metadata and controls

29 lines (14 loc) · 1.15 KB

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