Learning a convolutional neural network for non-uniform motion blur removal

Jian Sun, Wenfei Cao, Zongben Xu, Jean Ponce

Introduction

The removal of motion blur from single images is a fundamental challenge in computer vision. Traditionally, this problem was approached using hand-crafted mathematical priors to regularize the ill-posed task of deconvolution. However, the 2015 paper "Learning a Convolutional Neural Network for Non-uniform Motion Blur Removal" marked a significant shift by leveraging Deep Learning to learn the characteristics of motion blur directly from data.

The Challenge of Non-uniform Blur

Most early deblurring research focused on uniform blur, where a single kernel describes the motion across the entire image. In practice, blur is often non-uniform due to camera rotation or multiple moving objects. Estimating a unique blur kernel for every pixel is extremely difficult because there are too many unknowns for the available data. Previous attempts often relied on restrictive assumptions about camera motion or failed in complex real-world scenarios.

Methodology

The authors proposed a multi-stage pipeline to estimate and remove non-uniform blur, moving away from manual feature engineering.

1. Patch-level Kernel Estimation

The core of the approach is a Convolutional Neural Network (CNN) trained to predict the probability that a $30 \times 30$ image patch was blurred by a specific motion kernel. The network classifies patches into one of 73 candidate kernels, representing various lengths and orientations.

Motion kernel representation and the set of candidate kernels used for CNN training.

2. The Rotation Trick

To achieve finer angular resolution without increasing the number of output classes in the CNN, the authors introduced a "rotation trick." During inference, the input image is rotated at 6-degree intervals. Since rotating an image also rotates its blur, the 73-label CNN can effectively identify up to 361 different motion kernels. This inference-time data augmentation significantly improves precision without requiring a more complex network architecture.

3. Dense Field Refinement with MRF

CNN predictions on individual patches can be noisy or inconsistent. To address this, the authors employed a Markov Random Field (MRF) to regularize the motion field. The MRF encourages spatial smoothness, ensuring that neighboring pixels have similar blur kernels, which helps eliminate blocky artifacts in the final result.

Visualization of the estimated motion field on a real-world blurry image after MRF refinement.

4. Non-uniform Deconvolution

With a refined map of blur kernels for the entire image, the final step involves a standard non-uniform deconvolution process. The authors used a Gaussian Mixture Model (GMM) prior to reconstruct the sharp image from the estimated motion field.

Experimental Results

The proposed "DL_MRF" (Deep Learning + MRF) method demonstrated substantial improvements over existing techniques:

  • Quantitative Accuracy: On synthetic datasets, the method achieved a Mean Squared Error (MSE) for motion kernels of 7.83, vastly outperforming Fourier-based (44.56) and regression-based (65.10) methods.
  • Qualitative Performance: The approach excels at handling depth-dependent blur, such as a moving foreground object against a static background. The resulting images appear more natural, with significantly fewer "ringing" artifacts compared to traditional methods.

Conclusion and Future Directions

This work proved that CNNs could effectively learn to identify complex motion patterns that are difficult to model mathematically. While the 2015 implementation was not real-time (taking approximately 80 seconds for a $300 \times 400$ image), it paved the way for modern end-to-end deblurring networks. Future work suggested by the authors included moving toward a single-stage network that performs both kernel estimation and deconvolution simultaneously.

Summary updated

BibTeX
@inproceedings{sun2015learning,
  author = {Jian Sun and Wenfei Cao and Zongben Xu and Jean Ponce},
  title = {{Learning a convolutional neural network for non-uniform motion blur removal}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2015},
  doi = {10.1109/cvpr.2015.7298677},
}
Figure