Locally Non-rigid Registration for Mobile HDR Photography

Orazio Gallo, Alejandro J. Troccoli, Jun Hu, Kari Pulli, Jan KautzWorkshops @ CVPR 2015

Abstract

Image registration for stack-based HDR photography is challenging. If not properly accounted for, camera motion and scene changes result in artifacts in the composite image. Unfortunately, existing methods to address this problem are either accurate, but too slow for mobile devices, or fast, but prone to failing. We propose a method that fills this void: our approach is extremely fast - under 700ms on a commercial tablet for a pair of 5MP images - and prevents the artifacts that arise from insufficient registration quality.

Introduction

High-Dynamic-Range (HDR) imaging typically requires taking a "stack" of photos at different exposures and merging them. However, when shooting handheld, two major issues arise:

  1. Camera Motion: Even slight hand tremors cause parallax, meaning objects shift differently depending on their distance from the lens.
  2. Scene Motion: People move, trees sway, and balls fly, leading to "ghosting" artifacts in the final composite.

Existing solutions fall into two extremes: simple global transformations (like homographies) that are fast but fail to handle parallax, and complex non-rigid registration (optical flow) that produces great results but takes minutes to process on a desktop—making them useless for a smartphone. This paper targets the "missing middle": a method accurate enough for parallax and small scene changes, yet fast enough for mobile hardware.

Methodology

The proposed pipeline is optimized for speed and robustness through four key stages:

  • Fast, Robust Matcher: Instead of using heavy descriptors like SIFT, the method employs a lightweight "cornerness" metric based on luminance differences in four quadrants around a pixel. The shortest (darkest) exposure is used as the reference to preserve structural detail in highlights that would otherwise be saturated.
  • Iterative Outlier Filtering: A RANSAC-inspired filter identifies sets of matches locally consistent with various homographies, effectively weeding out incorrect matches caused by noise or moving objects.
  • Sparse-to-Dense Flow Propagation: To minimize computational cost, sparse matches are propagated to every pixel using an edge-aware cross-bilateral filter. This ensures motion boundaries align with the actual edges of objects in the reference image.
  • Error-Tolerant Image Fusion: The standard exposure fusion algorithm is modified to include a weight based on the Structural Similarity Index (SSIM). If registration quality is poor, the algorithm automatically favors the reference image to prevent ghosting.

Evaluation and Results

The algorithm was evaluated using real-world HDR stacks captured with handheld mobile devices (e.g., NVIDIA SHIELD Tablet, Google Nexus 6) and DSLRs.

Performance

The entire pipeline processes a pair of 5MP images in 677ms on an NVIDIA SHIELD Tablet. On a desktop (GTX Titan), it takes just 150ms, representing an 11x speedup over the fastest previously published optical flow methods. Furthermore, execution time grows sublinearly with pixel count, ensuring scalability for higher-resolution sensors.

Visual Quality

Qualitatively, the method eliminates ghosting artifacts seen in single-homography methods and avoids the structural distortions common in faster "patch-match" style algorithms.

Comparison of HDR registration results: (a) full result, (b) single homography, (c) Bao et al., and (d) the proposed method.

Discussion

A key insight of this work is the "Dark Reference" strategy. By using the shortest exposure as a reference, the system maintains structural detail in bright areas (like the sun or clouds) where other frames are saturated. Additionally, using SSIM during fusion acts as a safety net; the system can detect its own registration failures and gracefully degrade to a single-exposure look in problematic areas rather than producing a blurry "ghost."

Limitations

While effective for typical HDR scenes, the method may struggle with large non-rigid motion (e.g., fast sports) where the sparse matcher might fail to find sufficient consistent points. In very smooth, textureless regions, registration quality depends on the distance to the nearest match, though SSIM-weighted fusion mitigates the resulting artifacts.

Conclusion

This paper introduces a high-speed, locally non-rigid registration pipeline designed specifically for HDR photography on mobile devices. By combining a novel sparse feature matcher with edge-aware flow propagation and error-tolerant image fusion, the authors achieve high-quality, ghost-free HDR results in under 700ms on a commercial tablet.

Summary updated

BibTeX
@inproceedings{gallo2015locally,
  author = {Orazio Gallo and Alejandro J. Troccoli and Jun Hu and Kari Pulli and Jan Kautz},
  title = {{Locally Non-rigid Registration for Mobile HDR Photography}},
  booktitle = {Workshops @ CVPR},
  year = {2015},
  url = {https://openreview.net/forum?id=HybDEgzuWS},
}
Figure