From the May 2013 issue

Deconvolution, part 2

July 2013: Here’s how you can turn the theory into reality.
By | Published: May 28, 2013 | Last updated on May 18, 2023

tony_hallas
In last month’s column, we looked at the theory of deconvolution. This month, we’ll explore a hands-on application.

Our goal will be to deconvolve a slightly blurred image and make it look sharp. Be warned, however: Two bad things can happen if we don’t have the settings correct.

The first is an overly noisy background; the second is dark circles around our stars. If we don’t have a high enough signal-to-noise ratio, the same process that sharpens detail also will sharpen noise!

And applying too much deconvolution by having too high a point-spread function (PSF, which is the amount of blur of your stars) or too many iterations will create dark circles around stars.

Many deconvolution routines are available. My favorite is the one in the original AIP4WIN software. Open the program, and go to “File,” then “Open,” then “Enhance,” and finally, “Deconvolution.”

Original-AIP4WIN-control-panel
This image shows the original AIP4WIN deconvolution control panel. The author explains all the settings. // Tony Hallas
Using the “Image Display Control,” adjust the image so you can see all of it. To do this, set the “Minimum” value to 0, then adjust the “Gamma” and the “Maximum” values until you get a smooth gray-scale image without posterization. That effect changes the smooth transition of tones to one that alters them abruptly. The image below shows the deconvolution control box.

I suggest the following steps. Set the values as indicated.

1. Under “Blur Type,” choose “Gaussian.”
2.
Next, estimate your PSF by moving the “Radius” slider until the blur of the stars in the little boxes approximates the blur in your stars. For your image, pick a value of 2.2.
3.
Under “Deconvolution Type,” choose “Richardson-Lucy.”
4.
Under “Noise Reduction,” choose the default.
5.
If after deconvolution your background is too noisy, move this value higher. If you have an extremely good signal-to-noise ratio, you can move this lower.
6. For “Number of Iterations,” choose 10.0.
7.
Leave the boxes unchecked and click “Apply.” It might take a few minutes for the magic to happen.

Deconvolution
A good deconvolution (left) reduces star sizes and sharpens detail without adding excessive noise. Going too far (right) creates black circles around stars and curdles the background. // Tony Hallas
The deconvolved image will appear on top of the base image. Move the top image so you can see part of the base image and compare the two. Look specifically for dark circles around stars and excessive noise. If the image looks clean, increase the PSF (step 2) and the iterations slightly (step 6) and click “Apply” again. You want to adjust the settings higher until you just start to see artifacts, then back down slightly. This will give you the maximum deconvolution without artifacts.

Remember, you are only estimating the PSF. Experiment to find the optimum setting. Also remember that you can adjust the noise filter to create a good result. Don’t hesitate to try different settings to see what the results are. When deconvolution works properly, it is like a miracle. Happy miracles!