Restoration of blurred and defocused images. Restoring out-of-focus and blurry images Photo doctor restoring blurry and blurry images

Do you have a lot of time and are you ready to sit for hours trying to improve the colors in your photo, make it sharper or remove digital noise? This is a bold decision! For those who value time and want to perform all the above photo enhancement operations in one click, we suggest using online service correction of flaws photo site. The simple and user-friendly interface of the site will help you deal with the most common digital photography problems in less than a minute:

  • faded colors or incorrect color reproduction;
  • digital noise in the photo;
  • blur;
  • red-eye effect on photos of people.

By uploading your photo to the service page of the site from a computer or via a link, you immediately receive a finished improved photo, with color correction, noise reduction and sharpening only in the right areas. At the same time, color saturation is adjusted and red eyes, if any, are removed.

Finer manual photo correction settings

After the first photo processing, you will see a number of settings marked with checkmarks. They will allow you to select the necessary parameters more accurately (cancel or activate the function of noise removal, photo sharpening, light correction, saturation enhancement, digital temperature adjustment).

Save enhanced photos. Free photo hosting. How to show your enhanced photo to your friends

Enhanced photos can be saved to the Pho.to service (even without registration) or downloaded to your hard drive. A couple of clicks and you will share the link to the enhanced photo with your friends on Facebook, Myspace, Twitter, LinkedIn or other social network. You can also easily post improved photos to your blog or website using embed codes: HTML, BBcode or a code to embed photos in a flash shell.

I present to your attention the smartdeblur program to eliminate blur and defocus. Its first distributions and sources can be downloaded at github.com/Y-Vladimir/SmartDeblur , the latest paid distributions are available at smartdeblur.net.

Below you can see the result of processing the blurry image. The photo was taken with a Canon 500D camera, EF 85mm/1.8 lens. Focusing in manual mode to get blur. As you can see, the text is absolutely unreadable, you can only guess that this is some kind of dialog box.

And this is the result of processing:


Almost the entire text can be read, although there are some distortions.

Let's remember the theory

During distortion, each pixel of the original photo becomes a segment (during normal blurring) or a spot (during defocusing). All this is superimposed and as a result a distorted photograph comes out - this is called convolution or image convolution. The law according to which one pixel is smeared is called the distortion function or PSF (Point spread function).

To restore the image, we need to reverse (reverse) the convolution, but take into account the noise. But it's just not that simple. The convolution theorem and the Fourier transform come to the rescue. I don’t think it’s worth describing the theory in more detail on this blog. Since the very purpose of the record is to give a link to the program and say what it can do. If you are interested in theoretical issues, then the author devoted three articles to them:

  • habrahabr.ru/post/136853
  • habrahabr.ru/post/147828
  • habrahabr.ru/post/152885

Description

SmartDeblur demonstrates the restoration of out-of-focus and blurry images.

Main functions:

  • High speed. Processing photos with a resolution of 2048*1500 takes about 300ms in Preview mode.
  • Selection of settings in Real-time. No need to press the Preview button, everything is done automatically, you just need to move the settings sliders.
  • Processing takes place for a photo in full resolution. There are no small preview windows and Apply buttons.
  • Restoring out-of-focus and blurry images
  • Adjusting the PSF View

The main emphasis was placed on processing speed. As a result, it outperforms commercial counterparts.

True, the program has a number of features and bugs - at some values, the photo is covered with ripples.

Comparison

Compare the processing quality with paid analogues.
Let's take the 2 most famous programs:

  1. Topaz InFocus - topazlabs.com/infocus
  2. Focus Magic - focusmagic.com

We will take advertising images that are on their official sites - this ensures that the parameters of the programs are optimal (most likely, the developers selected the photos well and selected the settings before publishing the advertisement on the site).

Lubrication recovery:

topazlabs.com/infocus/_images/licenseplate_compare.jpg

Processing with the following parameters:

Result on the Topaz InFocus website:

The second example is defocus restoration.

Taking an example from the Focus Magic website: focusmagic.com/focusing-examples.htm

Modern photographic equipment, unfortunately, is far from perfect. Even the most expensive camera in an emergency can fail. Something extraordinary happens, a person takes out a camera, presses the shutter button, but in reality the picture turns out too blurry and the lost moment cannot be returned. In this case, a new software algorithm will help SmartDeblur.

Program SmartDeblur was developed by Vladimir Yuzhikov, who tried to solve two of the most important problems that cause blurry images in one product. The image may become poor quality due to poor focus and camera movement while the shutter is open. Any of these two mistakes can seriously spoil photograph, however, Vladimir is sure that low-quality is not yet completely lost to history.

Project author SmartDeblur says that even in the case of a blurry photograph, all the necessary pixels are in the picture, it’s just that each of these pixels is blurred in a special way in two-dimensional space. To overcome this problem, it is necessary to find a way to eliminate this blur and put each pixel in its rightful place. Miracle does not happen, algorithmSmartDeblur does not allow, as if by magic, to receive an ultra-clear image professional level. However, the result is more than impressive. The program has a simple and functional interface with a set of "sliders" for adjusting image parameters. Mastering the capabilities of the program occurs in the process of its operation. Simply upload the image you want, move a few sliders, and see what it looks like. The utility boasts exceptional performance, all changes made by the user are displayed in real time.

Screenshots:

Program features:

Simple, intuitive interface High speed. Processing a 2048*1500 pixel image takes about 300ms in Preview mode (when the settings sliders are moved) and 1.5 seconds in Clean mode (when the settings sliders are released). Selection of parameters in Real-time mode. There is no need to press the Preview buttons, everything is done automatically, you just need to move the distortion settings sliders. The processing goes for the image in full resolution. Those. there is no small preview window and Apply buttons. Support for recovering blurry and out-of-focus images Possibility to adjust the PSF view

Out-of-focus photos are becoming more and more popular for some reason, but apart from everyone's favorite Instagram filters, they're usually just annoying. Let's say you tried to shoot a one-of-a-kind family video only to find that the image was blurry and shaky.

It turns out there are programs that can sharpen photos without fiddling with Photoshop. While in most cases a blurry photo or video will never turn into a sharp and beautiful copy, these tools can be used to restore important details and bring back the sharpness to make the material a little better.

Naturally, you shouldn't expect to take a series of highly out-of-focus photos and edit them to fit on the cover of a magazine, but you can dabble in the style of the CSI series using these apps and get amazing results.

Fully free app, which can be used as many times as you want, and in many ways it is friendlier than the Focus Magic. On the other hand, its work is not stable (the program hung a little while I tested it, especially when loading too heavy images), and the results that the program produces may be different.

There are several useful features in SmartDeblur - the presence of a zoom option, as well as the Fit To Window option (Adjust to the window size). You can also compare the results with the original by clicking on "Show Original". Preview is available for the entire image. The program contains a sample on which you can learn how to sharpen to read blurry text.

After testing the tool on my own photos, I found that it didn't work as well as the Focus Magic. But I managed to get good results with a picture containing text.

  • Pros: Absolutely free, with a friendly interface, very useful for reading blurry text on a photo.
  • Minuses: Not very stable, doesn't work that well with real photos (but test the app for yourself to make your own verdict).

Trying to recover lost parts will feel like working with CSI, but don't expect anything spectacular.

Focus Magic

Focus Magic is more than just a sharpening program. According to their website, they use "advanced forensic deconvolution technology that literally removes the blur." In theory, the app copes with out-of-focus images and blurry videos by restoring lost detail. But does it really work?


Focus Magic is far from being an automatic tool. And this is a huge minus, since the free trial version only allows you to perform 10 operations. After that, you will need to purchase a full license, which costs $45. After uploading an image, you first need to decide whether you want to focus, remove motion blur, defocus, or declutter the image. Then the long process of adjusting the parameters begins.

Since it is only possible to see a preview for a small area of ​​the image, it takes many attempts to achieve a good effect for the entire photo.

  • Pros: It looks like a professional tool with which you can really achieve good results.
  • Minuses: The work requires many attempts, but the user of the free version has only 10 of them. In addition, there is no option to change the scale (zoom), which causes inconvenience.

With the help of the application, you can restore the sharpness of images if you have the patience and money.

The application, unlike its competitors, has several features: detailed guide and self-sufficiency. By self-sufficiency, I mean the ability of a program to take over hard work setting if you wish. If you know what you are doing, you can access advanced settings, but this is not necessary at all.


After completing the training, you can start processing. To do this, place a red square on an area with a strong blur and click on the Process button. In most cases, that's all. If you are not satisfied with the results, you can move the square to another area and try again. The app does a good job of turning some blurry photos into decent ones.

As you can see, the downside is the watermarks that are superimposed on all the photos that you process using the free version of the application. If you really like the program and want to get rid of the watermark, the license will cost you $39.

  • pros: Easy to use, good processing results, worse with text.
  • Minuses: All edited photos are watermarked. The license costs $39.

findings

Believe it or not, I spent half a day researching this topic. After trying to sharpen a lot of blurry photos and videos, I realized one thing - it's better to shoot good footage right away. But if for some reason "Plan A" didn't work, then the apps above are able to squeeze something out of your material, but it really depends on what you're aiming to achieve.

Easy Photo Unblur helps you focus blurry photos, fix blemishes from shaky camera and hands, and blurry moving objects. The program's algorithms will analyze your image and identify out-of-focus objects or blurry areas of the image, instead of sharpening the entire image.

Fix focus errors

You captured a unique moment, only to find later that it was out of focus. There is nothing sadder than deleting a great photo just because of a small error in focus. A missed opportunity? Not if you use Easy Photo Unblur!
Image out of focus? Easy Photo Unblur will fix that! This tool can correct small and small focus errors by applying smart focusing algorithms only to blurry subjects in a photo. What final result? One photo worth a thousand words!

Fix Trembling Hand Defects

Camera shake at the time of shooting is the cause of a huge number of spoiled pictures. Optical image stabilization and ultra-high ISO speeds can help, but they're usually found on expensive cameras and lenses. Even cameras with optical image stabilization can produce blurry shots. Fortunately, such defects can be corrected. Easy Photo Unblur uses sophisticated algorithms to detect camera shake imperfections, correct them gently, and produce a sharp image as a result.
Unlike other tools, Easy Photo Unblur, instead of simply overlaying the image with a Sharpness Filter (Sharp), uses a clever technique to detect blurry and out-of-focus defects and, as if by magic, can fix only smeared areas.


Remove motion blur

There are two types of motion blur, and you'll probably only want to fix one of them. When you shoot a moving subject at a slow shutter speed, the subject may come out blurry. This is because the subject is moving while the shutter is open. Easy Photo Unblur can correct this type of blur.
In the second case, you can take pictures with a sufficiently long exposure, specially moving along with the objects, following the camera. In this case, you get a sharp image of the subject and a blurred background, which perfectly emphasizes the movement in a static image. You probably don't want to fix this type of blur.