Motion Deblurring using Spatiotemporal Phase Aperture Coding

Shay Elmalem, Raja Giryes, Emanuel MaromarXiv 2020

Abstract

Motion blur remains a significant challenge in photography, particularly in low-light conditions where long exposure times are required. Traditional "blind deblurring" techniques often struggle to reconstruct sharp images without prior knowledge of motion trajectories. This paper presents a novel computational imaging approach called Spatiotemporal Phase Aperture Coding. By integrating a specialized phase-mask with a focus-shifting liquid lens, the system encodes motion information directly into the image as color-coded gradients. A deep learning model then decodes these cues to reconstruct sharp images across complex, multi-directional motion scenarios.

Introduction

Photographers often face the "exposure triangle" dilemma: achieving sufficient light in dark settings requires long exposures, which inevitably leads to motion blur if the subject or camera moves. Recovering a sharp image from such a blur is a mathematically "ill-posed" problem because the specific trajectory and speed of the motion are unknown. Previous computational attempts, such as "fluttered shutters," often sacrifice light throughput, while others, like parabolic sensor motion, are limited to one-dimensional blur. This work introduces a hardware-software co-design that preserves light and provides clear directional cues for motion in any orientation.

Methods: Spatiotemporal Phase Aperture Coding

The proposed system utilizes a two-part "encoder-decoder" architecture to manage motion blur.

Hardware Encoding

The hardware setup involves placing a specialized phase-mask, consisting of concentric rings, within the lens aperture. This mask is paired with a liquid lens that gradually shifts focus during the exposure period. This combination creates a "chromatic-temporal coupling": as the focus changes over time, the camera's Point Spread Function (PSF) changes color. Consequently, a moving object does not produce a simple gray smear but rather a color-coded gradient (e.g., shifting from blue to green to red). This gradient serves as a roadmap, indicating both the direction and velocity of the motion.

Overview of the spatiotemporal phase aperture coding pipeline, from image acquisition to CNN-based deblurring.

Software Decoding

To reconstruct the sharp image, the authors employed a multiscale U-Net convolutional neural network (CNN). Unlike standard deblurring algorithms that must guess motion parameters, this network is specifically trained to recognize the unique color gradients produced by the hardware. These gradients act as a "prior," allowing the network to estimate spatially varying blur and accurately restore sharp textures.

Key Insights and Results

Color as a Compass

A primary innovation of this method is using the visible spectrum as a proxy for time. By ensuring different colors are in focus at different points during the exposure, the motion trajectory is effectively "painted" into the raw image. For example, a blue-to-red smear indicates motion in one direction, while red-to-blue indicates the opposite. Because the focus-color relationship is circularly symmetric, this method works for motion in any direction, overcoming the limitations of previous 1D-focused methods.

Multi-directional color-coded blurs produced by the spatiotemporal phase aperture coding system, demonstrating its ability to encode motion in any orientation.

Performance Metrics

In simulations, the proposed method achieved a Peak Signal-to-Noise Ratio (PSNR) of approximately 30.9 dB, significantly outperforming state-of-the-art blind deblurring baselines (28.1 dB). Real-world validation using a physical prototype—comprising a C-mount lens, an Arduino-controlled liquid lens, and the custom phase mask—successfully deblurred complex subjects like rotating fans and moving toy trains, producing significantly sharper edges than software-only solutions.

Limitations and Future Work

While the system is robust, its performance is currently tied to the velocity range of the training data; objects moving faster than the model's learned parameters may see reduced reconstruction quality. Additionally, the phase mask introduces a minor amount of static diffraction blur, which the CNN must be trained to remove. Future research may explore using these temporal color cues for "video-from-motion" extraction or temporal super-resolution, potentially recovering high-frame-rate sequences from a single blurred exposure.

Summary updated

BibTeX
@misc{elmalem2020motion,
  author = {Shay Elmalem and Raja Giryes and Emanuel Marom},
  title = {{Motion Deblurring using Spatiotemporal Phase Aperture Coding}},
  year = {2020},
  eprint = {2002.07483},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2002.07483},
}
Figure