Introduction
Event-based Vision Sensors (EVS) excel at capturing high-speed motion by recording asynchronous brightness changes. However, they lack the ability to reproduce color. The HybridEVS design addresses this by integrating a Quad Bayer Color Filter Array (CFA) with specialized event pixels. While promising, this sensor architecture introduces significant image processing challenges:
- Missing Data: Event pixels do not record color, creating "holes" in the raw mosaic.
- Complex Patterns: The Quad Bayer arrangement, where same-color pixels are clustered in 2x2 groups, is prone to aliasing and moiré artifacts during demosaicing.
Existing solutions, often based on heavy Transformer architectures, are typically too computationally expensive for mobile deployment. This paper introduces TSANet, a lightweight two-stage framework designed for efficient and high-quality HybridEVS demosaicing.
Methodology: The TSANet Framework
TSANet adopts a "divide and conquer" strategy by splitting the reconstruction process into two distinct stages to improve stability and performance.
Two-Stage Architecture
- Stage 1: Quad-to-Quad (Q2Q): This stage focuses on "inpainting" the missing color information at the event pixel locations, restoring a complete Quad Bayer mosaic from the sparse input.
- Stage 2: Quad-to-RGB (Q2R): The second stage performs the final demosaicing, converting the filled Quad Bayer image into a standard high-resolution RGB image.
State Space Augmented Blocks
The core of TSANet is the Cross-Swin State Block (CSSB), which balances local detail with global context by running two modules in parallel:
- Quad Bayer Cross Swin Attention (QCSA): Utilizes windowed attention to capture local, high-frequency textures essential for sharp edges.
- Residual Vision State Space (RVSS): Employs a Mamba-inspired State Space Model (SSM) to capture long-range dependencies with linear complexity, providing Transformer-like global reach without the quadratic computational cost.
Positional Priors
To help the network navigate the fixed geometry of the HybridEVS sensor, a Fourier Feature Module (FFM) is used. By encoding pixel positions into the feature space, the FFM provides the model with a "map" of the CFA pattern, improving its ability to handle the non-standard layout.
Experimental Results
TSANet was evaluated using the MIPI 2024 Demosaic Challenge dataset and various synthesized benchmarks including Kodak, Urban100, and BSD100.
Performance and Efficiency
The "large" variant, TSANet-l, demonstrated superior performance over the previous state-of-the-art, DemosaicFormer:
- Higher Fidelity: Achieved higher PSNR and SSIM scores across seven datasets.
- Resource Efficiency: Required 1.86× fewer parameters and 3.29× fewer FLOPs than DemosaicFormer.
- Visual Quality: Qualitatively, TSANet produced more vivid colors and significantly reduced moiré artifacts compared to CNN-based methods like NAFNet or CycleISP.
Conclusion
TSANet effectively addresses the complexities of HybridEVS demosaicing by combining the strengths of State Space Models and cross-attention. Its two-stage design and efficient architecture make high-quality, event-enhanced imaging feasible for resource-constrained mobile devices. Future work will focus on hardware-specific optimizations and evaluating the model's impact on downstream tasks like object detection.
Summary updated