Table of Contents
This plug-in has a preview that helps you select the best parameters.
Instructions for installing the plug-in are described in Installation.
Instructions for using the plug-in are described in Using the plug-in.
The home page for the Refocus plug-in is located at http://refocus.sourceforge.net.
For installing refocus you need the following:
Installation should be simple. Untar the distribution. If you want to use ATLAS install it in lib-atlas (see Using ATLAS).
Then run ./configure in the top-level directory.
Then run make install-bin if you want to install the plug-in under your home directory or make install-admin-bin if you want to install the plug-in under your Gimp's system directory.
If you have gtk-doc installed you can build the system documentation in the gtk-doc directory. In this case you must invoke configure with the --enable-gtk-doc option. When you make it for the first time make will fail with the message No rule to make target `tmpl/*.sgml'. Running make again will fix this problem.
ATLAS (see http://math-atlas.sourceforge.net) is a system for generating high-performance mathematical libraries. It generates a library that is specifically tuned to your processor and compiler. refocus needs some routines for solving a linear system of equations. By default refocus uses an unoptimized version from the CLAPACK distribution (see http://www.netlib.org/clapack/).
Go to the subdirectory lib/Linux_PII and run make.
cd lib/Linux_PII make
This will generate a gzipped tar file that contains the generated libraries and include files.
Copy the gzipped tar file to the refocus directory and unpack it.
cp ~/ATLAS/lib/atlas3.4.1_Linux_PII.tgz ~/refocus cd ~/refocus zcat atlas3.4.1_Linux_PII.tgz |tar xvf - mv Linux_PII lib-atlas
If you have already run configure , you must delete the file config.cache.
Then run configure. If everything is OK you should see a message like using atlas in lib-atlas/lib.
The plug-in window looks something like this:
The bottom of the preview contains the following buttons:
This section describes a few hints to help you work with the refocus plug-in.
The time needed for computing the transformation matrix after you have pressed the Update button depends dramatically on the Matrix Width. Using a smaller value for Matrix Width will give you much better performance for this part of the computations. You should also consider using ATLAS (see Using ATLAS).
1/9 | 1/9 | 1/9 |
1/9 | 1/9 | 1/9 |
1/9 | 1/9 | 1/9 |
Standard Wiener filters have two disadvantages for our purpose:
FIR Wiener filtering has the following advantages:
For technical background on the FIR Wiener deconvolution see [Jain89].