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:
- 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)
Focus blur reduction:
Motion blur reduction:
Example custom kernel obtained from a photo containing motion trail of small, bright object: