Abstract
We present a motion segmentation guided convolutional neural network (CNN) approach for high dynamic range (HDR) image deghosting. First, we segment the moving regions in the input sequence using a CNN. Then, we merge static and moving regions separately with different fusion networks and combine fused features to generate the final ghost-free HDR image. Our motion segmentation guided HDR fusion approach offers significant advantages over existing HDR deghosting methods. First, by segmenting the input sequence into static and moving regions, our proposed approach learns effective fusion rules for various challenging saturation and motion types. Second, we introduce a novel memory network that accumulates the necessary features required to generate plausible details in the saturated regions. The proposed method outperforms nine existing state-of-the-art methods on two publicly available datasets and generates visually pleasing ghost-free HDR results. We also present a large-scale motion segmentation dataset of 3683 varying exposure images to benefit the research community.
Introduction
Creating a High Dynamic Range (HDR) image typically involves merging a "stack" of images taken at different exposures (bracketed LDR images). However, if objects move or the camera shakes during the sequence, the resulting HDR image often suffers from "ghosting"—blurry, translucent artifacts where the object appeared in different positions.
Existing deep learning models often struggle with two specific scenarios:
- Saturation + Motion: When a moving object is in a region that is "blown out" (saturated) in the reference frame, the model lacks structural information to guide reconstruction.
- Monolithic Architectures: Most CNNs try to learn a single fusion rule for the entire image, failing to account for the fact that static and moving regions require fundamentally different processing logic.
This paper introduces a "divide-and-conquer" approach to HDR deghosting by explicitly segmenting moving objects from static backgrounds. By using a specialized memory network to "borrow" details from across an exposure stack and employing separate fusion rules, the model produces artifact-free HDR images even in heavily saturated scenes.
Methodology
The proposed pipeline treats static and dynamic pixels as two distinct problems, guided by an explicit segmentation map.
- Feature Encoding: Input LDR images are passed through a shared encoder to extract deep features.
- Motion Segmentation: A dedicated U-Net-style segmentation network identifies "dynamic" regions (motion relative to a reference frame) and "static" regions.
- Divide-and-Conquer Fusion: Features are split based on the segmentation map into Static Fusion ($F_s$), which identifies the best-exposed pixels, and Dynamic Fusion ($F_d$), which maintains the reference frame's structure while borrowing HDR details.
- Global Memory Network: This acts as an external cache that accumulates features from all images in the stack. During fusion, the model "reads" from this memory to find plausible textures for saturated areas where the reference image is blank.
- SDC Decoder: Fused features are combined and passed through Stacked and Dilated Convolutional (SDC) blocks to capture both fine details and larger structural context.
Datasets
The study utilizes three main datasets, including a newly introduced large-scale benchmark:
- MEDS (Multi-Exposure Dynamic motion Segmentation): A new dataset containing 3,683 sequences with human-annotated motion masks, providing the ground truth for motion that previous datasets lacked.
- Kalantari et al.: A standard benchmark in HDR deghosting.
- Prabhakar et al.: Used to evaluate the model's ability to scale to an arbitrary number of input images.
Key Results
The proposed method was compared against nine state-of-the-art (SOTA) methods, including both classical patch-based and deep learning approaches.
- Quantitative Performance: The model achieved the highest scores in PSNR and SSIM across almost all test categories. Notably, it showed a significant lead in HDR-VDP-2, a metric designed to mimic human perception of HDR quality.
- Qualitative Superiority: Visual results show that while SOTA methods often leave "color bleeding" or blurry textures in saturated motion areas, this method recovers sharp, realistic textures, such as individual leaves on a tree.
- Efficiency: The model processes a 1000x1500 image in roughly 3.31 seconds on a modern GPU, significantly faster than traditional patch-matching methods.
Conclusion
By explicitly training the network to recognize motion and using a global memory module to "hallucinate" details based on actual evidence from other frames, this approach significantly advances HDR deghosting. While the model relies on global alignment to handle extreme camera shake, its ability to handle saturated motion regions sets a new standard for the field. Future work may involve integrating more sophisticated attention mechanisms within the memory operations to further refine feature selection.
Summary updated