Abstract
Coded exposure imaging improves deblurring by rapidly fluttering the camera shutter, but finding the optimal binary sequence for this fluttering is a complex combinatorial problem. This paper presents a deterministic algorithm based on modified Legendre sequences that generates high-quality shutter patterns in a fraction of a second. By optimizing for a "Coded Factor" that considers both noise suppression and frequency preservation, the proposed method significantly outperforms traditional random search techniques in both computational efficiency and image reconstruction quality.
Introduction: The Challenge of Motion Blur
Capturing fast-moving objects often results in motion blur because a standard shutter acts as a low-pass filter, permanently losing high-frequency spatial details. Coded exposure imaging mitigates this by "fluttering" the shutter—rapidly opening and closing it during a single exposure. This process preserves high frequencies, making the resulting blur mathematically invertible during post-processing.
However, the effectiveness of deblurring depends entirely on the specific binary sequence (the pattern of 1s and 0s) used for the shutter. For a sequence of length 130, there are $2^{130}$ possible patterns, making an exhaustive search impossible. Previous methods relied on slow random or priority searches that often failed to find optimal patterns for the long sequences required for high-speed motion or high-resolution enhancement.
Methodology: Leveraging Legendre Sequences
The authors propose a deterministic approach inspired by information theory, specifically Legendre sequences. These sequences are valued in radar and telecommunications for their low autocorrelation, which translates to a "flat" frequency response in the Fourier domain—an ideal characteristic for deblurring.
The proposed algorithm adapts these sequences through three steps:
- Rotation and Extension: Since Legendre sequences are defined for prime lengths, the algorithm cyclically rotates a prime-length sequence to find an optimal starting point and appends elements to reach the target length.
- The Coded Factor ($F_C$): A new metric is introduced to evaluate sequences. It balances the "Merit Factor" (minimizing noise) with the preservation of the "Minimum MTF" (Modulation Transfer Function).
- Optimization: A "steepest descent" refinement flips individual bits to maximize the Coded Factor.
Key Insights: The Importance of the Minimum MTF
A critical insight of this work is that the "worst-performing" frequency—the minimum value in the MTF—is the primary bottleneck for deblurring. If the shutter pattern zeroes out even a single frequency, that information is lost forever. By maximizing the minimum MTF, the proposed method ensures that no spatial details are completely destroyed, leading to more robust reconstruction and higher PSNR/SSIM scores.
Experimental Results
The method was evaluated using both synthetic datasets (Kodak Lossless True Color Image Suite) and real-world captures using a PointGrey Flea3 camera.
Computational Efficiency
The most striking result is the speedup. While a standard random search ($10^8$ samples) requires approximately 7.4 hours to find a sequence of length 130, the modified Legendre approach finds a superior sequence in just 0.21 seconds. This scalability allows for the generation of very long exposure codes necessary for extreme motion.
Deblurring Quality
In synthetic tests, the proposed sequences consistently achieved higher Peak Signal-to-Noise Ratio (PSNR) and Structural Similarity (SSIM) scores than previous state-of-the-art patterns. Real-world experiments on moving objects, such as currency and barcodes, demonstrated significantly reduced "ringing" artifacts and sharper text.
Conclusion and Future Work
By bridging the gap between information theory and computational photography, this paper provides a highly efficient solution for generating optimal coded exposure patterns. While currently focused on 1D linear motion, the speed of the algorithm opens the door for scene-dependent fluttering, where patterns could be adapted in real-time to specific lighting or motion trajectories in a dynamic environment.
Summary updated