Incredible CSI-Like "Enhance!" Technology Fixes Unfocused Photos

By Jesus Diaz on at

Remember all those movies and TV shows in which the Feds turned a completely blurred photo into a focused image by clicking one button? Remember how you sneered? Well, soon you won't be able to laugh at it anymore. This app lets you deblur any heavily blurred image just like that.

Even while imperfect, the results are truly astonishing.

Created by Vladimir Yuzhikov — a software engineer specialised in image and signal processing — the SmartDeblur app is truly impressive. According to him, the "restoration of distorted images is one of the most interesting and important problems of image processing — from the theoretical, as well as from the practical point of view." Even while the math for doing it started to develop about 70s years ago, he says, it's only now that we are seeing the results of it.

Yuzhikov worked on two common cases: blurring due to incorrect focus and blurring due to movement. "Each of you knows very well," he points out, they "are very difficult to repair." In fact, the examples used as samples by Yuzhikov are impossible to fix using current commercial technology.

 

Magic processing

He started his work with his own picture of Venice. First he applied a synthetic blurring filter on it, and then he applied his software on it. It worked, as you can see above. And while it didn't revert to its original state, the results were impressive.

Many people think that blurring is an irreversible operation and the information in this case is lost for good, because each pixel turns into a spot, everything mixes up, and in case of a big blur radius we will get a flat colour all over the image. But it is not quite true — all the information just becomes redistributed in accordance with some rules and can be definitely restored with certain assumptions.

But, of course, artificially blurred images are not the real problem. The real problem is real world fuzzy images caused by poor lens focusing or unwanted motion blur. The results, however, were not as perfect but equally impressive.

Take a look at his examples:

Example of blurred image because of poor focus:

Incredible CSI-Like "Enhance!" Technology Fixes Unfocused Photos

Taken with a Canon 500D camera using manual focus.

 

Yuzhikov's app result:

Incredible CSI-Like "Enhance!" Technology Fixes Unfocused Photos

 

Example of blurred image because of motion:

Incredible CSI-Like "Enhance!" Technology Fixes Unfocused Photos
Yuzhikov's app result:

Incredible CSI-Like "Enhance!" Technology Fixes Unfocused Photos

 

Example of out of focus image of text (left) and fixed image (right)

Incredible CSI-Like "Enhance!" Technology Fixes Unfocused Photos

 

The program

Incredible CSI-Like "Enhance!" Technology Fixes Unfocused Photos

While the images have artefacts, it's quite amazing to see the level of detail that Yuzhikov's program can obtain from these blurred images, like window panes on windows that were just muddy spots. I'm sure that we will soon see this and much better focusing filters in future software. And with the computational power of smartphones increasing by the day — especially their graphic processing units, which are ideal for the math required in this — it will not be surprised to see this feature built in the camera software of future iOS, Android and Windows phones.

You can here download and try it (sadly, it's Windows-only now). [Yuzhikov — Thanks Ángel Jiménez!]