The Refocus-it GIMP plug-in, released under GNU General Public License (GPL), can be used to refocus images acquired by a defocused camera, blurred by gaussian or motion blur or any combination of these.
There are a few nice features of this plug-in, especially adaptive / static area smoothing used to remove the so called "ringing" effect introduced by edges in the image and effects introduced by noise. Mirror and periodical boundary conditions are available. Preview helps you select the best parameters.
There are a few NOT nice features of this plug-in as well, namely its memory and CPU requirements.
The algorithm is based on finding the minimum of the error function using Hopfield neural network.
No doc is available yet.
This is a snapshot of text document acquired by a defocused camera. The blur radius is about 6.5 (determined by a try / error method).
The first restored image shows result of restoration with following parameters:
Notice the amplified noise in the restored image.
The second image was restored using these parameters:
Notice that the amplified noise has been partialy removed.
The last snapshot shows result of restoration with parameters:
Notice the benefit of adaptive area smoothing. The noise has almost disapeared from the smooth areas.
Download from SourceForge download page. The GIMP graphics program can be downloaded from GIMP home page
2004-07-20: Version 2.0.0 of refocus-it plugin for GIMP-2.0 released. This version is internationalized and includes a command-line version of refocus-it suitable for processing PNM files in batch mode. The command-line version is also easily portable to non-GNU platforms.
The version 1.0.2 is the first public release.
This plug-in was written by Lukas Kunc. Please mail your comments, questions and problems to Lukas.Kunc@seznam.cz
Sponsored by Pension Ceske chalupy.