Method and system for detecting motion blur
A system for detecting motion blur may include a process in which one or more digital images taken by a camera having a shutter are obtained, wherein the digital image depicts objects in a physical world. Further, the system may estimate the motion blur in the digital image using a ratio of one or more values obtained from the projection of a 2D spectrum of the image and a Fourier transform of a sequence of the shutter used in obtaining the image.
1. A process comprising:
determining a radon transform of the power spectrum of the blurred image;
inspecting the power spectrum of the image and determining the direction of the blur by detecting the direction in which a projection of the radon transform of the image's power spectrum displays the most variance;
selecting the radon transform of the images power spectrum in the direction of the blur;
applying a filter to smooth the spectrum and remove noise;
computing key locations of the smoothed spectrum, wherein the key locations include points at peaks and valleys of the spectrum;
using the shutter sequence, computing a modulation transfer function (MTF) of the shutter sequence;
computing key locations of the MTF; and
computing blur extent in the image from the weighted sum of the ratios of the corresponding key locations from the smoothed spectrum and the MTF shutter sequence.
2. A system comprising:
a computer system including a processor for executing one or more computer programs, the one or more computer programs operative on the computer system to process one or more digital images taken by a camera having a shutter, wherein the digital image depicts objects in a physical world, and wherein the one or more computer programs execute on the computer system to:
determine a radon transform of the power spectrum of the blurred image;
inspect the power spectrum of the image and determining the direction of the blur by detecting the direction in which a projection of the radon transform of the image's power spectrum displays the most variance;
select the radon transform of the images power spectrum in the direction of the blur;
apply a filter to smooth the spectrum and remove noise;
compute key locations of the smoothed spectrum, wherein the key locations include points at peaks and valleys of the spectrum;
use the shutter sequence, computing a modulation transfer function (MTF) of the shutter sequence;
compute key locations of the MTF; and
compute blur extent in the image from the weighted sum of the ratios of the corresponding key locations from the smoothed spectrum and the MTF shutter sequence.