Blur reduction is the next step in improving my astrophography. In fact, I’ve spent lots of time reading and researching blue reduction techniques. With most of what I do, the camera is actually in focus, but the distortions in the lens distort the picture in ways related to the shape of the glass.
Although not directly applicable, I tried out Photoshop‘s shake reduction tool which implements a similar method of deblurring – iterative deconvolution based on inferring a blur kernel from the image. A friend sent me the following test image, taken while on the road and providing plenty of motion blur to eliminate.
You can click on the photos to enlarge them. I’ve also been wanting to get more familiar with ImageMagick‘s tools for similar problems. Specifically we can use Fred’s deconvolution script to perform a non-iterative deconvolution of a source image and a given filter, or in this case the blur kernel. Because this method takes a much simpler approach to deconvolution, it’s very sensitive to noise and small values in the kernel. The noise parameter controls a sort of “fudge-factor” to prevent those divisions from blowing up.
<br /> ./fftdeconvol -n 0.01 hudson.jpg blur_kernel.png deblurred.jpg<br />
Although this approach takes more work than Photoshop’s (as if ImageMagick ever seemed easier at first glance), the result is stunningly better than I was able to get out of Photoshop. The extra work involved manually figuring out the motion path for the blur and creating a kernel image. It wasn’t that hard: the top left corner of the wooden sign gave away a motion of around forty pixels at a positive thirty-degree angle.
<br /> convert -size 2736x2736 xc:black -fill white -draw "line 1350,1378 1385,1358" -alpha off blur_kernel.png<br />
Finding the right noise value did take some trial-and-effort, though I imagine it wouldn’t be too hard to make some form of automation for this step.
Finally, here is the comparison between the original, Photoshop’d, and ImageMagick’d images.